mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:25:24 +00:00
DEV: Add primary group class to user summary page (#12809)
This commit is contained in:
parent
e01d5f80b4
commit
4b8d23c0d4
@ -154,6 +154,13 @@ export default Controller.extend(CanCheckEmails, {
|
||||
}
|
||||
},
|
||||
|
||||
@discourseComputed("model.primary_group_name")
|
||||
primaryGroup(group) {
|
||||
if (group) {
|
||||
return `group-${group}`;
|
||||
}
|
||||
},
|
||||
|
||||
userNotificationLevel: computed(
|
||||
"currentUser.ignored_ids",
|
||||
"model.ignored",
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{plugin-outlet name="above-user-profile" tagName="" args=(hash model=model)}}
|
||||
<div class="container {{if viewingSelf "viewing-self"}} {{if model.profile_hidden "profile-hidden"}}">
|
||||
<div class="container {{if viewingSelf "viewing-self"}} {{if model.profile_hidden "profile-hidden"}} {{primaryGroup}}">
|
||||
{{#d-section class="user-main"}}
|
||||
<section class="{{if collapsedInfo "collapsed-info"}} about {{if hasProfileBackgroundUrl "has-background" "no-background"}}" >
|
||||
{{#unless collapsedInfo}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user