Add some plugin outlets to the user card

This commit is contained in:
Robin Ward 2017-12-19 15:04:40 -05:00
parent bb2c8b605e
commit c1716d41c7
2 changed files with 10 additions and 1 deletions

View File

@ -270,6 +270,10 @@ export default Ember.Component.extend(CleansUp, CanCheckEmails, {
},
actions: {
close() {
this._close();
},
cancelFilter() {
const postStream = this.get('postStream');
postStream.cancelFilter();

View File

@ -18,6 +18,7 @@
<h1 class="{{staff}} {{new_user}} {{if nameFirst "full-name" "username"}}">
<a href={{user.path}} {{action "showUser"}}>{{if nameFirst user.name (format-username username)}} {{user-status user currentUser=currentUser}}</a>
</h1>
{{plugin-outlet name="user-card-after-username" args=(hash user=user) tagName=''}}
{{#unless nameFirst}}
{{#if user.name}}
@ -78,11 +79,15 @@
</li>
{{/if}}
</ul>
{{plugin-outlet
name="user-card-additional-controls"
args=(hash user=user close=(action "close"))
tagName=""}}
{{#if isSuspended}}
<div class='suspended'>
{{d-icon "ban"}}
<b>{{i18n 'user.suspended_notice' date=user.suspendedTillDate}}</b><br/>
<b>{{i18n 'user.suspended_notice' date=user.suspendedTillDate}}</b><br>
<b>{{i18n 'user.suspended_reason'}}</b> {{user.suspend_reason}}
</div>
{{else}}