Skip to content

Commit

Permalink
feat: Add icon and option for Weblate in footer (#5656)
Browse files Browse the repository at this point in the history
Co-authored-by: iamareebjamal <[email protected]>
  • Loading branch information
sachinchauhan2889 and iamareebjamal authored Nov 20, 2020
1 parent 75d8bba commit 52a5796
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/components/icons/weblate.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<svg version="1.1" viewBox="0 0 27 20" xmlns="http://www.w3.org/2000/svg" class="icon" style="
fill: rgba(255, 255, 255, 0.7);
height: 1em;
width: 1.1em;
margin-right: 0.2em;
padding-top: .2em;
">
<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>
</svg>
1 change: 1 addition & 0 deletions app/models/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export default ModelBase.extend({
supportUrl : attr('string'),
facebookUrl : attr('string'),
instagramUrl : attr('string'),
weblateUrl : attr('string'),
patreonUrl : attr('string'),
gitterUrl : attr('string'),
telegramUrl : attr('string'),
Expand Down
5 changes: 5 additions & 0 deletions app/templates/components/footer-main.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
<i class="telegram icon"></i> {{t 'Telegram'}}
</a>
{{/if}}
{{#if this.socialLinks.weblateUrl}}
<a class="item" href="{{this.socialLinks.weblateUrl}}" target="_blank" rel="noopener noreferrer">
<Icons::Weblate /> {{t 'Weblate'}}
</a>
{{/if}}
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,9 @@
<label>{{t 'Telegram'}}</label>
<Input type="url" @value={{this.socials.telegramUrl}} />
</div>
<div class="field">
<label>{{t 'Weblate'}}</label>
<Input type="url" @value={{this.socials.weblateUrl}} />
</div>
<button class="ui teal button" type="submit">{{t 'Save'}}</button>
</form>

1 comment on commit 52a5796

@vercel
Copy link

@vercel vercel bot commented on 52a5796 Nov 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.