message view: show admin/moderator status of sender

This commit is contained in:
joshua stein 2014-02-21 11:19:32 -06:00
parent 95202f21b2
commit 57748f9839

View file

@ -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>