From de1dc4d0d0e6aa12582578f7a7f629b7b2bb38de Mon Sep 17 00:00:00 2001 From: Maurice Williams Date: Tue, 29 Jul 2014 01:50:34 -0400 Subject: [PATCH] Removing "author" role-label closes #3427 - adding conditional statement to now display users with role "author" --- core/client/controllers/settings/users/user.js | 4 ++++ core/client/templates/settings/users/index.hbs | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/core/client/controllers/settings/users/user.js b/core/client/controllers/settings/users/user.js index 2d25c11f40..c1506b5a55 100644 --- a/core/client/controllers/settings/users/user.js +++ b/core/client/controllers/settings/users/user.js @@ -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, diff --git a/core/client/templates/settings/users/index.hbs b/core/client/templates/settings/users/index.hbs index 95bbef1515..0328e11ef0 100644 --- a/core/client/templates/settings/users/index.hbs +++ b/core/client/templates/settings/users/index.hbs @@ -48,15 +48,17 @@
- {{user.name}} + {{name}}
Last seen: {{unbound last_login}}
{{/link-to}} {{/each}}