mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 05:51:22 +00:00
30 lines
795 B
Text
30 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("»") 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>
|