mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #4304 from Mittineague/add-badge-slug-to-class
Add badge slug to class
This commit is contained in:
commit
1ad3340325
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ import DiscourseURL from 'discourse/lib/url';
|
|||
|
||||
export default Ember.Component.extend({
|
||||
size: 'medium',
|
||||
classNameBindings: [':badge-card', 'size', 'navigateOnClick:hyperlink'],
|
||||
classNameBindings: [':badge-card', 'size', 'badge.slug', 'navigateOnClick:hyperlink'],
|
||||
|
||||
click(e){
|
||||
if (e.target && e.target.nodeName === "A") {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class='container show-badge'>
|
||||
<div class='container show-badge {{model.slug}}'>
|
||||
<h1>
|
||||
{{#link-to 'badges.index'}}{{i18n 'badges.title'}}{{/link-to}}
|
||||
/
|
||||
|
@ -20,7 +20,7 @@
|
|||
</div>
|
||||
|
||||
{{#if userBadges}}
|
||||
<div class="user-badges">
|
||||
<div class="user-badges {{model.slug}}">
|
||||
{{#load-more selector=".badge-info" action="loadMore"}}
|
||||
{{#each userBadges as |ub|}}
|
||||
{{#user-info user=ub.user size="medium" class="badge-info" date=ub.granted_at}}
|
||||
|
|
Loading…
Reference in a new issue