mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
UX: Link to automatic group page on user admin page.
This commit is contained in:
@ -24,9 +24,13 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
||||
'model.can_disable_second_factor'
|
||||
),
|
||||
|
||||
automaticGroups: function() {
|
||||
return this.get("model.automaticGroups").map((g) => g.name).join(", ");
|
||||
}.property("model.automaticGroups"),
|
||||
@computed("model.automaticGroups")
|
||||
automaticGroups(automaticGroups) {
|
||||
return automaticGroups.map(group => {
|
||||
const name = Ember.String.htmlSafe(group.name);
|
||||
return `<a href="/groups/${name}">${name}</a>`;
|
||||
}).join(", ");
|
||||
},
|
||||
|
||||
userFields: function() {
|
||||
const siteUserFields = this.site.get('user_fields'),
|
||||
|
Reference in New Issue
Block a user