diff --git a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 index 238b86cdb26..238cd974959 100644 --- a/app/assets/javascripts/discourse/components/user-card-contents.js.es6 +++ b/app/assets/javascripts/discourse/components/user-card-contents.js.es6 @@ -270,6 +270,10 @@ export default Ember.Component.extend(CleansUp, CanCheckEmails, { }, actions: { + close() { + this._close(); + }, + cancelFilter() { const postStream = this.get('postStream'); postStream.cancelFilter(); diff --git a/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs b/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs index e258a0a3242..441b877b14f 100644 --- a/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs +++ b/app/assets/javascripts/discourse/templates/components/user-card-contents.hbs @@ -18,6 +18,7 @@

{{if nameFirst user.name (format-username username)}} {{user-status user currentUser=currentUser}}

+ {{plugin-outlet name="user-card-after-username" args=(hash user=user) tagName=''}} {{#unless nameFirst}} {{#if user.name}} @@ -78,11 +79,15 @@ {{/if}} + {{plugin-outlet + name="user-card-additional-controls" + args=(hash user=user close=(action "close")) + tagName=""}} {{#if isSuspended}}
{{d-icon "ban"}} - {{i18n 'user.suspended_notice' date=user.suspendedTillDate}}
+ {{i18n 'user.suspended_notice' date=user.suspendedTillDate}}
{{i18n 'user.suspended_reason'}} {{user.suspend_reason}}
{{else}}