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

29 lines
795 B
Text

<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 %>
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 class="footer">
</div>
</div>
<% end %>
<h2><%= link_to 'Back to the Inbox', messages_path() %></h2>