diff --git a/app/assets/javascripts/discourse/app/templates/user/badges.hbs b/app/assets/javascripts/discourse/app/templates/user/badges.hbs index 4419f262f56..1fceef5f5a6 100644 --- a/app/assets/javascripts/discourse/app/templates/user/badges.hbs +++ b/app/assets/javascripts/discourse/app/templates/user/badges.hbs @@ -1,13 +1,15 @@ {{body-class "user-badges-page"}}
-

- {{i18n - "badges.favorite_count" - count=this.favoriteBadges.length - max=this.siteSettings.max_favorite_badges - }} -

+ {{#if this.siteSettings.max_favorite_badges}} +

+ {{i18n + "badges.favorite_count" + count=this.favoriteBadges.length + max=this.siteSettings.max_favorite_badges + }} +

+ {{/if}}
{{#each this.sortedBadges as |ub|}}