Merge pull request #4304 from Mittineague/add-badge-slug-to-class
Add badge slug to class
This commit is contained in:
commit
1ad3340325
|
@ -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 New Issue