UX: omit fav badges count if max is 0 (#28402)
This commit is contained in:
parent
e8308f783d
commit
5e91233ca9
|
@ -1,13 +1,15 @@
|
|||
{{body-class "user-badges-page"}}
|
||||
|
||||
<section class="user-content" id="user-content">
|
||||
<p class="favorite-count">
|
||||
{{i18n
|
||||
"badges.favorite_count"
|
||||
count=this.favoriteBadges.length
|
||||
max=this.siteSettings.max_favorite_badges
|
||||
}}
|
||||
</p>
|
||||
{{#if this.siteSettings.max_favorite_badges}}
|
||||
<p class="favorite-count">
|
||||
{{i18n
|
||||
"badges.favorite_count"
|
||||
count=this.favoriteBadges.length
|
||||
max=this.siteSettings.max_favorite_badges
|
||||
}}
|
||||
</p>
|
||||
{{/if}}
|
||||
|
||||
<div class="badge-group-list">
|
||||
{{#each this.sortedBadges as |ub|}}
|
||||
|
|
Loading…
Reference in New Issue