FIX: Translate all boolean values in user index

This commit is contained in:
Claas Augner 2016-12-27 11:16:30 +01:00
parent 49dda1e025
commit 8760f13c77
No known key found for this signature in database
GPG Key ID: 63E8BCF5EB1A35AE
1 changed files with 35 additions and 5 deletions

View File

@ -221,7 +221,13 @@
<div class='display-row'> <div class='display-row'>
<div class='field'>{{i18n 'admin.user.admin'}}</div> <div class='field'>{{i18n 'admin.user.admin'}}</div>
<div class='value'>{{model.admin}}</div> <div class='value'>
{{#if model.admin}}
{{i18n 'yes_value'}}
{{else}}
{{i18n 'no_value'}}
{{/if}}
</div>
<div class='controls'> <div class='controls'>
{{#if model.can_revoke_admin}} {{#if model.can_revoke_admin}}
{{d-button action="revokeAdmin" icon="shield" label="admin.user.revoke_admin"}} {{d-button action="revokeAdmin" icon="shield" label="admin.user.revoke_admin"}}
@ -234,7 +240,13 @@
<div class='display-row'> <div class='display-row'>
<div class='field'>{{i18n 'admin.user.moderator'}}</div> <div class='field'>{{i18n 'admin.user.moderator'}}</div>
<div class='value'>{{model.moderator}}</div> <div class='value'>
{{#if model.moderator}}
{{i18n 'yes_value'}}
{{else}}
{{i18n 'no_value'}}
{{/if}}
</div>
<div class='controls'> <div class='controls'>
{{#if model.can_revoke_moderation}} {{#if model.can_revoke_moderation}}
{{d-button action="revokeModeration" icon="shield" label="admin.user.revoke_moderation"}} {{d-button action="revokeModeration" icon="shield" label="admin.user.revoke_moderation"}}
@ -272,7 +284,13 @@
<div class="display-row {{if model.isSuspended 'highlight-danger'}}"> <div class="display-row {{if model.isSuspended 'highlight-danger'}}">
<div class='field'>{{i18n 'admin.user.suspended'}}</div> <div class='field'>{{i18n 'admin.user.suspended'}}</div>
<div class='value'>{{model.isSuspended}}</div> <div class='value'>
{{#if model.isSuspended}}
{{i18n 'yes_value'}}
{{else}}
{{i18n 'no_value'}}
{{/if}}
</div>
<div class='controls'> <div class='controls'>
{{#if model.isSuspended}} {{#if model.isSuspended}}
{{d-button class="btn-danger" action="unsuspend" icon="ban" label="admin.user.unsuspend"}} {{d-button class="btn-danger" action="unsuspend" icon="ban" label="admin.user.unsuspend"}}
@ -303,7 +321,13 @@
<div class="display-row {{if model.blocked 'highlight-danger'}}"> <div class="display-row {{if model.blocked 'highlight-danger'}}">
<div class='field'>{{i18n 'admin.user.blocked'}}</div> <div class='field'>{{i18n 'admin.user.blocked'}}</div>
<div class='value'>{{model.blocked}}</div> <div class='value'>
{{#if model.blocked}}
{{i18n 'yes_value'}}
{{else}}
{{i18n 'no_value'}}
{{/if}}
</div>
<div class='controls'> <div class='controls'>
{{#conditional-loading-spinner size="small" condition=model.blockingUser}} {{#conditional-loading-spinner size="small" condition=model.blockingUser}}
{{#if model.blocked}} {{#if model.blocked}}
@ -319,7 +343,13 @@
<div class="display-row"> <div class="display-row">
<div class='field'>{{i18n 'admin.user.staged'}}</div> <div class='field'>{{i18n 'admin.user.staged'}}</div>
<div class='value'>{{model.staged}}</div> <div class='value'>
{{#if model.staged}}
{{i18n 'yes_value'}}
{{else}}
{{i18n 'no_value'}}
{{/if}}
</div>
<div class='controls'>{{i18n 'admin.user.staged_explanation'}}</div> <div class='controls'>{{i18n 'admin.user.staged_explanation'}}</div>
</div> </div>
</section> </section>