0
Fork 0
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:
Maurice Williams 2014-07-29 01:50:34 -04:00
parent 9343bccb1f
commit de1dc4d0d0
2 changed files with 10 additions and 4 deletions

View file

@ -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,

View file

@ -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}}