discourse/app/assets/javascripts/admin/addon/templates/admin-badges.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1010 B
Handlebars
Raw Normal View History

2014-03-05 07:52:20 -05:00
<div class="badges">
2019-01-23 05:29:51 -05:00
<div class="badges-header">
<h3 class="badges-heading">{{i18n "admin.badges.title"}}</h3>
<div class="create-new-badge">
<LinkTo @route="adminBadges.show" @model="new" class="btn btn-primary">
2019-01-23 05:29:51 -05:00
{{d-icon "plus"}}
<span>{{i18n "admin.badges.new"}}</span>
</LinkTo>
2020-01-13 12:44:22 -05:00
<LinkTo @route="adminBadges.award" @model="new" class="btn btn-default">
2020-01-13 12:44:22 -05:00
{{d-icon "upload"}}
<span>{{i18n "admin.badges.mass_award.title"}}</span>
</LinkTo>
2019-01-23 05:29:51 -05:00
</div>
</div>
2018-02-14 12:26:05 -05:00
<div class="content-list">
2019-01-23 05:29:51 -05:00
<ul class="admin-badge-list">
{{#each this.model as |badge|}}
2019-01-23 05:29:51 -05:00
<li class="admin-badge-list-item">
<LinkTo @route={{this.selectedRoute}} @model={{badge.id}}>
<BadgeButton @badge={{badge}} />
2019-01-23 05:29:51 -05:00
{{#if badge.newBadge}}
<span class="list-badge">{{i18n "filters.new.lower_title"}}</span>
{{/if}}
</LinkTo>
2019-01-23 05:29:51 -05:00
</li>
2014-03-05 07:52:20 -05:00
{{/each}}
</ul>
</div>
{{outlet}}
2020-01-13 12:44:22 -05:00
</div>