Skip to content

Commit

Permalink
add-weblate
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchauhan2889 committed Nov 16, 2020
1 parent 532e748 commit 2b115f7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
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
6 changes: 6 additions & 0 deletions app/styles/partials/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@
}
}
}

.weblate-icon {
display: inline-block;
height: 14px;
width: 16px;
}
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">
<img src="{{if this.socialLinks.weblateUrl '/images/weblate icon.jpg'}}" class="weblate-icon"> {{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>
Binary file added public/images/weblate icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b115f7

Please sign in to comment.