ensl.org/app/views/messages/show.html.erb

23 lines
776 B
Text
Raw Normal View History

2014-04-06 14:14:03 +00:00
<h2><%= link_to 'Back to the Inbox', messages_path %></h2><br/>
<% @messages.each do |message| %>
<div class="article wide">
<h1 class="<%= message.recipient == @message.recipient ? "sender" : "recipient" %>">
<%= raw("&#187;") if message == @message %>
<%= namelink message %>
</h1>
<div class="clear content">
<%= raw message.text_parsed %>
</div>
<h4 class="left">
Sent by: <%= namelink message.sender %>
2014-04-06 14:14:03 +00:00
on <%= shortdate message.created_at %>
</h4>
<h3 class="right">
<%= link_to "Reply", :controller => "messages", :action => "new", :id => message.sender_type, :id2 => message.sender_id, :title => message.title %>
</h3>
</div>
<% end %>
2014-04-06 14:14:03 +00:00
<h2><%= link_to 'Back to the Inbox', messages_path %></h2>