mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Tweak explanations for multiple_grant and allow_title
This commit is contained in:
parent
4db76796b9
commit
f7e8bc6216
@ -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';
|
|
||||||
}
|
|
||||||
});
|
|
@ -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>
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{{#if checked}}
|
|
||||||
{{fa-icon "check"}}
|
|
||||||
{{else}}
|
|
||||||
{{fa-icon "times"}}
|
|
||||||
{{/if}}
|
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user