mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:13:38 +08:00
Add admin and moderator classes to usernames so they can be styled
This commit is contained in:
parent
ab3d664ce0
commit
18fafa12a2
|
@ -17,6 +17,8 @@ var PosterNameComponent = Em.Component.extend({
|
|||
primaryGroupName = post.get('primary_group_name');
|
||||
|
||||
if (post.get('staff')) { linkClass += ' staff'; }
|
||||
if (post.get('admin')) { linkClass += ' admin'; }
|
||||
if (post.get('moderator')) { linkClass += ' moderator'; }
|
||||
if (post.get('new_user')) { linkClass += ' new-user'; }
|
||||
|
||||
if (!Em.isEmpty(primaryGroupName)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user