mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:43:38 +08:00
Add some plugin outlets to the user card
This commit is contained in:
parent
bb2c8b605e
commit
c1716d41c7
|
@ -270,6 +270,10 @@ export default Ember.Component.extend(CleansUp, CanCheckEmails, {
|
|||
},
|
||||
|
||||
actions: {
|
||||
close() {
|
||||
this._close();
|
||||
},
|
||||
|
||||
cancelFilter() {
|
||||
const postStream = this.get('postStream');
|
||||
postStream.cancelFilter();
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user