Skip to content

Commit 52a5796

Browse files
feat: Add icon and option for Weblate in footer (#5656)
Co-authored-by: iamareebjamal <[email protected]>
1 parent 75d8bba commit 52a5796

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

app/components/icons/weblate.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<svg version="1.1" viewBox="0 0 27 20" xmlns="http://www.w3.org/2000/svg" class="icon" style="
2+
fill: rgba(255, 255, 255, 0.7);
3+
height: 1em;
4+
width: 1.1em;
5+
margin-right: 0.2em;
6+
padding-top: .2em;
7+
">
8+
<path d="m13.505 4.028c-0.0017-4e-5 -0.0034-7.5e-5 -5e-3 -1.05e-4 -0.0017 3e-5 -0.0034 6.5e-5 -5e-3 1.05e-4 -0.11025-0.0015-0.22073 0.01793-0.32591 0.06238-0.59671 0.25261-0.9728 0.90036-1.2087 1.5476-0.20481 0.56175-0.29546 1.1651-0.29679 1.7605l-0.0016 0.07791c-0.0019 0.03033-0.0043 0.06055-0.0075 0.09067 0.02191 1.5184 0.30756 3.048 0.90819 4.445 0.67267 1.5645 1.7419 3.0037 3.2516 3.6616 1.1389 0.49637 2.4014 0.37928 3.4336-0.20534 1.2816-0.72588 2.2062-2.0094 2.8114-3.3878 1.2572-2.8648 1.2874-6.3574 0.03289-9.2972 1.2227-0.63339 1.22-1.8963 1.22-1.8963s1.1453 0.82078 2.4332 0.30544c1.715 4.0186 1.6736 8.75-0.13474 12.708-1.0572 2.3139-2.7738 4.3411-5.0202 5.384-1.9998 0.9286-4.3513 0.9518-6.3527 0.07963-1.7985-0.78402-3.2613-2.1966-4.3137-3.839-1.5242-2.3788-2.246-5.2748-2.2492-8.1286h0.01183c-9.01e-4 -0.03006-0.0013-0.06012-9.54e-4 -0.09024 0.02318-2.5663 1.0748-5.18 3.1841-6.5213 0.77462-0.49257 1.6798-0.77459 2.5936-0.78467 0.01046-8.1e-5 0.02122-1.32e-4 0.03183-1.51e-4 0.01379-1e-5 0.02811 4.4e-5 0.04191 1.51e-4 0.91371 0.01007 1.8189 0.2921 2.5936 0.78467 2.1093 1.3413 3.1609 3.9551 3.1841 6.5213 3.18e-4 0.03012-5.3e-5 0.06018-9.55e-4 0.09024h0.01183c-0.0031 2.7121-0.65515 5.4624-2.0282 7.7706-0.39383-2e-3 -0.78628-0.08215-1.1562-0.24339-0.83333-0.36312-1.5671-1.0489-2.1641-1.9768 0.17024-0.30266 0.32367-0.61606 0.46065-0.93466 0.60064-1.3969 0.88629-2.9266 0.90819-4.445-0.0032-0.03012-0.0057-0.06034-0.0075-0.09067l-0.0016-0.07792c-0.0013-0.59534-0.09198-1.1987-0.29679-1.7605-0.23595-0.64722-0.61204-1.295-1.2087-1.5476-0.10522-0.04446-0.21573-0.06389-0.32591-0.06255v1.8e-4zm-0.88468 15.396c-1.97 0.81042-4.258 0.76693-6.2107-0.13979-2.2465-1.043-3.963-3.0701-5.0202-5.384-1.8083-3.9579-1.8497-8.6893-0.13474-12.708 1.2879 0.51534 2.4332-0.30544 2.4332-0.30544s-0.0027 1.2629 1.22 1.8963c-1.2545 2.9398-1.2243 6.4325 0.03289 9.2972 0.60525 1.3784 1.5298 2.662 2.8114 3.3878 0.45742 0.25906 0.96005 0.42632 1.4771 0.48907 0.0019 3e-3 0.0038 6e-3 0.0057 9e-3 0.91308 1.425 2.0633 2.6126 3.3853 3.4577z" style="/* color: white; */"></path>
9+
</svg>

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/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+
<Icons::Weblate /> {{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>

0 commit comments

Comments
 (0)