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

Failed to ignore revisions in .git-blame-ignore-revs.

32 lines
955 B
Handlebars
Raw Normal View History

2014-03-05 20:52:20 +08:00
<div class="badges">
2019-01-23 18:29:51 +08:00
<div class="badges-header">
<h3 class="badges-heading">{{i18n "admin.badges.title"}}</h3>
2019-01-23 18:29:51 +08:00
<div class="create-new-badge">
{{#link-to "adminBadges.show" "new" class="btn btn-primary"}}
2019-01-23 18:29:51 +08:00
{{d-icon "plus"}}
<span>{{i18n "admin.badges.new"}}</span>
2019-01-23 18:29:51 +08:00
{{/link-to}}
2020-01-14 01:44:22 +08:00
{{#link-to "adminBadges.award" "new" class="btn"}}
2020-01-14 01:44:22 +08:00
{{d-icon "upload"}}
<span>{{i18n "admin.badges.mass_award.title"}}</span>
{{/link-to}}
2019-01-23 18:29:51 +08:00
</div>
</div>
<div class="content-list">
2019-01-23 18:29:51 +08:00
<ul class="admin-badge-list">
{{#each model as |badge|}}
2019-01-23 18:29:51 +08:00
<li class="admin-badge-list-item">
{{#link-to selectedRoute badge.id}}
2019-01-23 18:29:51 +08:00
{{badge-button badge=badge}}
{{#if badge.newBadge}}
<span class="list-badge">{{i18n "filters.new.lower_title"}}</span>
2019-01-23 18:29:51 +08:00
{{/if}}
{{/link-to}}
</li>
2014-03-05 20:52:20 +08:00
{{/each}}
</ul>
</div>
{{outlet}}
2020-01-14 01:44:22 +08:00
</div>