message view: show admin/moderator status of sender
This commit is contained in:
parent
95202f21b2
commit
57748f9839
|
@ -13,6 +13,11 @@
|
|||
<div class="sublegend">
|
||||
Sent from <a href="/u/<%= @message.author.username %>"><%=
|
||||
@message.author.username %></a>
|
||||
<% if @message.author.is_admin? %>
|
||||
(administrator)
|
||||
<% elsif @message.author.is_moderator? %>
|
||||
(moderator)
|
||||
<% end %>
|
||||
to
|
||||
<a href="/u/<%= @message.recipient.username %>"><%=
|
||||
@message.recipient.username %></a>
|
||||
|
|
Loading…
Reference in a new issue