Skip to content

Commit 2b115f7

Browse files
add-weblate
1 parent 532e748 commit 2b115f7

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

app/models/setting.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export default ModelBase.extend({
7474
supportUrl : attr('string'),
7575
facebookUrl : attr('string'),
7676
instagramUrl : attr('string'),
77+
weblateUrl : attr('string'),
7778
patreonUrl : attr('string'),
7879
gitterUrl : attr('string'),
7980
telegramUrl : attr('string'),

app/styles/partials/icons.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@
3333
}
3434
}
3535
}
36+
37+
.weblate-icon {
38+
display: inline-block;
39+
height: 14px;
40+
width: 16px;
41+
}

app/templates/components/footer-main.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
<i class="telegram icon"></i> {{t 'Telegram'}}
9494
</a>
9595
{{/if}}
96+
{{#if this.socialLinks.weblateUrl}}
97+
<a class="item" href="{{this.socialLinks.weblateUrl}}" target="_blank" rel="noopener noreferrer">
98+
<img src="{{if this.socialLinks.weblateUrl '/images/weblate icon.jpg'}}" class="weblate-icon"> {{t 'Weblate'}}
99+
</a>
100+
{{/if}}
96101
</div>
97102
</div>
98103
</div>

app/templates/components/forms/admin/content/social-links-form.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,9 @@
6969
<label>{{t 'Telegram'}}</label>
7070
<Input type="url" @value={{this.socials.telegramUrl}} />
7171
</div>
72+
<div class="field">
73+
<label>{{t 'Weblate'}}</label>
74+
<Input type="url" @value={{this.socials.weblateUrl}} />
75+
</div>
7276
<button class="ui teal button" type="submit">{{t 'Save'}}</button>
7377
</form>

public/images/weblate icon.jpg

11.4 KB
Loading

0 commit comments

Comments
 (0)