">
<%= icon("chevron-right") if message == @message %>
<%= namelink message %>
<%= raw message.text_parsed %>
Sent by: <% if message.sender_type == 'System' %>System<% else %><%= namelink message.sender %><% end %> on <%= shortdate message.created_at %>
<%= link_to "Reply",
{ controller: "messages", action: "new", id: message.sender_type, id2: message.sender_id, title: message.title },
{ class: 'button tiny'} %>
<% end %>
<%= link_to 'Back to Messages', messages_path, class: 'button back' %>