sorry this is meant to be staff styling :)
This commit is contained in:
parent
9926b0dbc8
commit
a8ae81df4b
4 changed files with 9 additions and 4 deletions
app
assets
javascripts/discourse/templates
stylesheets/application
serializers
|
@ -5,7 +5,7 @@
|
||||||
<div>
|
<div>
|
||||||
<a href='/users/{{unbound username}}'>{{avatar this imageSize="small"}}</a>
|
<a href='/users/{{unbound username}}'>{{avatar this imageSize="small"}}</a>
|
||||||
</div>
|
</div>
|
||||||
<h5><a href='/users/{{unbound username}}'>{{username}}</a></h5>
|
<h5 {{bindAttr class="staff new_user"}}><a href='{{unbound usernameUrl}}'>{{breakUp username}}</a></h5>
|
||||||
<span class='post-date'>{{date created_at}}</span>
|
<span class='post-date'>{{date created_at}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<div class='topic-meta-data span2'>
|
<div class='topic-meta-data span2'>
|
||||||
<div {{bindAttr class=":contents byTopicCreator:topic-creator"}}>
|
<div {{bindAttr class=":contents byTopicCreator:topic-creator"}}>
|
||||||
<a href='{{unbound usernameUrl}}'>{{avatar this imageSize="large"}}</a>
|
<a href='{{unbound usernameUrl}}'>{{avatar this imageSize="large"}}</a>
|
||||||
<h3 {{bindAttr class="moderator new_user"}}><a href='{{unbound usernameUrl}}'>{{breakUp username}}</a></h3>
|
<h3 {{bindAttr class="staff new_user"}}><a href='{{unbound usernameUrl}}'>{{breakUp username}}</a></h3>
|
||||||
|
|
||||||
<div class='post-info'>
|
<div class='post-info'>
|
||||||
<a href='#' class='post-date' {{bindAttr data-share-url="shareUrl"}}>{{date created_at}}</a>
|
<a href='#' class='post-date' {{bindAttr data-share-url="shareUrl"}}>{{date created_at}}</a>
|
||||||
|
|
|
@ -347,7 +347,7 @@
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3.moderator a {
|
.staff a {
|
||||||
background-color: #ffe;
|
background-color: #ffe;
|
||||||
border: 1px solid #ffd;
|
border: 1px solid #ffd;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,12 +38,13 @@ class PostSerializer < ApplicationSerializer
|
||||||
:raw,
|
:raw,
|
||||||
:actions_summary,
|
:actions_summary,
|
||||||
:moderator?,
|
:moderator?,
|
||||||
|
:staff?,
|
||||||
:avatar_template,
|
:avatar_template,
|
||||||
:user_id,
|
:user_id,
|
||||||
:draft_sequence,
|
:draft_sequence,
|
||||||
:hidden,
|
:hidden,
|
||||||
:hidden_reason_id,
|
:hidden_reason_id,
|
||||||
:deleted_at,
|
:deleted_at,
|
||||||
:trust_level
|
:trust_level
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,6 +52,10 @@ class PostSerializer < ApplicationSerializer
|
||||||
object.user.moderator?
|
object.user.moderator?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def staff?
|
||||||
|
object.user.staff?
|
||||||
|
end
|
||||||
|
|
||||||
def avatar_template
|
def avatar_template
|
||||||
object.user.avatar_template
|
object.user.avatar_template
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue