mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Removing "author" role-label
closes #3427 - adding conditional statement to now display users with role "author"
This commit is contained in:
parent
9343bccb1f
commit
de1dc4d0d0
2 changed files with 10 additions and 4 deletions
|
@ -45,6 +45,10 @@ var SettingsUserController = Ember.ObjectController.extend({
|
|||
return createdAt ? createdAt.fromNow() : '';
|
||||
}.property('user.created_at'),
|
||||
|
||||
isAuthor: function () {
|
||||
return this.get('user.isAuthor');
|
||||
}.property('user.isAuthor'),
|
||||
|
||||
actions: {
|
||||
revoke: function () {
|
||||
var self = this,
|
||||
|
|
|
@ -48,15 +48,17 @@
|
|||
|
||||
<div class="object-list-item-body">
|
||||
<span class="name">
|
||||
{{user.name}}
|
||||
{{name}}
|
||||
</span>
|
||||
<br>
|
||||
<span class="description">Last seen: {{unbound last_login}}</span>
|
||||
</div>
|
||||
<aside class="object-list-item-aside">
|
||||
{{#each roles}}
|
||||
<span class="role-label {{unbound lowerCaseName}}">{{name}}</span>
|
||||
{{/each}}
|
||||
{{#unless isAuthor}}
|
||||
{{#each roles}}
|
||||
<span class="role-label {{unbound lowerCaseName}}">{{name}}</span>
|
||||
{{/each}}
|
||||
{{/unless}}
|
||||
</aside>
|
||||
{{/link-to}}
|
||||
{{/each}}
|
||||
|
|
Loading…
Reference in a new issue