Show the select badge button only once. (#5064)

This commit is contained in:
Bianca Nenciu 2017-08-18 19:00:20 +01:00 committed by Sam
parent 77469cfb88
commit e976b98efc
1 changed files with 6 additions and 8 deletions

View File

@ -13,14 +13,12 @@
<div class='grant-info-item'> <div class='grant-info-item'>
{{i18n 'badges.allow_title'}} {{i18n 'badges.allow_title'}}
{{#if userBadges}} {{#if userBadges}}
{{#each userBadges as |ub|}} {{#if model.allow_title}}
{{#if model.allow_title}} {{d-button
{{d-button class='btn btn-small pad-left no-text'
class='btn btn-small pad-left no-text' action='toggleSetUserTitle'
action='toggleSetUserTitle' icon='pencil'}}
icon='pencil'}} {{/if}}
{{/if}}
{{/each}}
{{/if}} {{/if}}
</div> </div>
{{/if}} {{/if}}