UX: omit fav badges count if max is 0 (#28402)

This commit is contained in:
Renato Atilio 2024-08-16 16:42:10 -03:00 committed by GitHub
parent e8308f783d
commit 5e91233ca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 7 deletions

View File

@ -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|}}