UX: Tweak explanations for multiple_grant and allow_title

This commit is contained in:
Robin Ward 2017-05-10 14:39:23 -04:00
parent 4db76796b9
commit f7e8bc6216
4 changed files with 12 additions and 24 deletions

View File

@ -1,11 +0,0 @@
import computed from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
tagName: 'span',
classNameBindings: [':check-display', 'status'],
@computed('checked')
status(checked) {
return checked ? 'status-checked' : 'status-unchecked';
}
});

View File

@ -9,12 +9,16 @@
{{badge-card badge=model size="large" count=userBadges.grant_count}} {{badge-card badge=model size="large" count=userBadges.grant_count}}
<div class='badge-grant-info'> <div class='badge-grant-info'>
<div> <div>
<div class='grant-info-item'> {{#if model.allow_title}}
{{check-mark checked=model.allow_title}} {{i18n 'badges.allow_title'}} <div class='grant-info-item'>
</div> {{i18n 'badges.allow_title'}}
<div class='grant-info-item'> </div>
{{check-mark checked=model.multiple_grant}} {{i18n 'badges.multiple_grant'}} {{/if}}
</div> {{#if model.multiple_grant}}
<div class='grant-info-item'>
{{i18n 'badges.multiple_grant'}}
</div>
{{/if}}
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,5 +0,0 @@
{{#if checked}}
{{fa-icon "check"}}
{{else}}
{{fa-icon "times"}}
{{/if}}

View File

@ -2342,8 +2342,8 @@ en:
granted_on: "Granted %{date}" granted_on: "Granted %{date}"
others_count: "Others with this badge (%{count})" others_count: "Others with this badge (%{count})"
title: Badges title: Badges
allow_title: "available title" allow_title: "You can use this badge as a title"
multiple_grant: "awarded multiple times" multiple_grant: "You can earn this multiple times"
badge_count: badge_count:
one: "1 Badge" one: "1 Badge"
other: "%{count} Badges" other: "%{count} Badges"