FIX: admin page for users who have not been activated makes it more clear that the account is inactive, and won't offer actions that don't work yet

This commit is contained in:
Neil Lalonde 2014-09-03 10:41:13 -04:00
parent ff136ddeea
commit 6489c1d7e3
2 changed files with 26 additions and 18 deletions

View File

@ -1,25 +1,27 @@
<section class='details'> <section {{bind-attr class=":details active::not-activated"}}>
<div class='user-controls'> <div class='user-controls'>
{{#link-to 'user' model class="btn"}} {{#if active}}
<i class='fa fa-user'></i> {{#link-to 'user' model class="btn"}}
{{i18n admin.user.show_public_profile}} <i class='fa fa-user'></i>
{{/link-to}} {{i18n admin.user.show_public_profile}}
{{#if can_impersonate}} {{/link-to}}
<button class='btn btn-danger' {{action impersonate target="content"}} title="{{i18n admin.impersonate.help}}"> {{#if can_impersonate}}
<i class='fa fa-crosshairs'></i> <button class='btn btn-danger' {{action impersonate target="content"}} title="{{i18n admin.impersonate.help}}">
{{i18n admin.impersonate.title}} <i class='fa fa-crosshairs'></i>
</button> {{i18n admin.impersonate.title}}
{{/if}} </button>
{{#if currentUser.admin}} {{/if}}
<button class='btn' {{action log_out target="content"}}> {{#if currentUser.admin}}
<i class='fa fa-power-off'></i> <button class='btn' {{action log_out target="content"}}>
{{i18n admin.user.log_out}} <i class='fa fa-power-off'></i>
</button> {{i18n admin.user.log_out}}
</button>
{{/if}}
{{/if}} {{/if}}
</div> </div>
<div class='display-row'> <div class='display-row username'>
<div class='field'>{{i18n user.username.title}}</div> <div class='field'>{{i18n user.username.title}}</div>
<div class='value'>{{username}}</div> <div class='value'>{{username}}</div>
<div class='controls'> <div class='controls'>
@ -30,9 +32,10 @@
</div> </div>
</div> </div>
<div class='display-row'> <div class='display-row email'>
<div class='field'>{{i18n user.email.title}}</div> <div class='field'>{{i18n user.email.title}}</div>
<div class='value'><a href="mailto:{{unbound email}}">{{email}}</a></div> <div class='value'><a href="mailto:{{unbound email}}">{{email}}</a></div>
<div class='controls'>{{i18n admin.users.not_verified}}</div>
</div> </div>
<div class='display-row'> <div class='display-row'>

View File

@ -1305,4 +1305,9 @@ tr.not-activated {
td, td a, td a:visited { td, td a, td a:visited {
color: #bbb; color: #bbb;
} }
}
.details.not-activated {
.username .value, .email .value a, .email .value a:visited {
color: #bbb;
}
} }