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>
|
|
|
|
<div class="create-new-badge">
|
2022-06-30 18:30:50 +08:00
|
|
|
<LinkTo @route="adminBadges.show" @model="new" class="btn btn-primary">
|
2019-01-23 18:29:51 +08:00
|
|
|
{{d-icon "plus"}}
|
|
|
|
<span>{{i18n "admin.badges.new"}}</span>
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2020-01-14 01:44:22 +08:00
|
|
|
|
2022-06-30 18:30:50 +08:00
|
|
|
<LinkTo @route="adminBadges.award" @model="new" class="btn btn-default">
|
2020-01-14 01:44:22 +08:00
|
|
|
{{d-icon "upload"}}
|
|
|
|
<span>{{i18n "admin.badges.mass_award.title"}}</span>
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2019-01-23 18:29:51 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-15 01:26:05 +08:00
|
|
|
<div class="content-list">
|
2019-01-23 18:29:51 +08:00
|
|
|
<ul class="admin-badge-list">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#each this.model as |badge|}}
|
2019-01-23 18:29:51 +08:00
|
|
|
<li class="admin-badge-list-item">
|
2022-07-06 01:41:31 +08:00
|
|
|
<LinkTo @route={{this.selectedRoute}} @model={{badge.id}}>
|
2022-06-30 18:30:50 +08:00
|
|
|
<BadgeButton @badge={{badge}} />
|
2019-01-23 18:29:51 +08:00
|
|
|
{{#if badge.newBadge}}
|
|
|
|
<span class="list-badge">{{i18n "filters.new.lower_title"}}</span>
|
|
|
|
{{/if}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2019-01-23 18:29:51 +08:00
|
|
|
</li>
|
2014-03-05 20:52:20 +08:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-10-18 02:27:40 +08:00
|
|
|
{{outlet}}
|
2020-01-14 01:44:22 +08:00
|
|
|
</div>
|