add a link to bounce emails list in user admin profile

This commit is contained in:
Régis Hanol 2016-05-18 22:38:35 +02:00
parent d43231da92
commit 8a04b78909
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,11 @@ const AdminUser = Discourse.User.extend({
}
},
@computed
bounceLink() {
return Discourse.getURL("/admin/email/bounced");
},
canResetBounceScore: Ember.computed.gt("bounce_score", 0),
resetBounceScore() {

View File

@ -354,7 +354,7 @@
</div>
<div class="display-row">
<div class='field'>{{i18n 'admin.user.bounce_score'}}</div>
<div class='field'><a href="{{model.bounceLink}}">{{i18n 'admin.user.bounce_score'}}</a></div>
<div class='value'>{{model.bounceScore}}</div>
<div class='controls'>
{{#if model.canResetBounceScore}}