0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Merge pull request #3439 from morficus/issue-3427

Removing "author" role-label
This commit is contained in:
Hannah Wolfe 2014-07-29 08:40:56 +01:00
commit f5a3a05951
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}}