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}}
<div class='badge-grant-info'>
<div>
<div class='grant-info-item'>
{{check-mark checked=model.allow_title}} {{i18n 'badges.allow_title'}}
</div>
<div class='grant-info-item'>
{{check-mark checked=model.multiple_grant}} {{i18n 'badges.multiple_grant'}}
</div>
{{#if model.allow_title}}
<div class='grant-info-item'>
{{i18n 'badges.allow_title'}}
</div>
{{/if}}
{{#if model.multiple_grant}}
<div class='grant-info-item'>
{{i18n 'badges.multiple_grant'}}
</div>
{{/if}}
</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}"
others_count: "Others with this badge (%{count})"
title: Badges
allow_title: "available title"
multiple_grant: "awarded multiple times"
allow_title: "You can use this badge as a title"
multiple_grant: "You can earn this multiple times"
badge_count:
one: "1 Badge"
other: "%{count} Badges"