mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-30 14:31:12 +00:00
24 lines
No EOL
868 B
Text
24 lines
No EOL
868 B
Text
<div id="messages">
|
|
<h1>Private Message</h1>
|
|
|
|
<% @messages.each do |message| %>
|
|
<div class="message">
|
|
<h3 class="subject <%= message.recipient == @message.recipient ? "sender" : "recipient" %>">
|
|
<%= icon("chevron-right") if message == @message %>
|
|
<%= namelink message %>
|
|
</h3>
|
|
<div class="content">
|
|
<%= raw message.text_parsed %>
|
|
</div>
|
|
<p>Sent by: <% if message.sender_type == 'System' %>System<% else %><%= namelink message.sender %><% end %> on <%= shortdate message.created_at %></p>
|
|
<p>
|
|
<%= link_to "Reply",
|
|
{ controller: "messages", action: "new", id: message.sender_type, id2: message.sender_id, title: message.title },
|
|
{ class: 'button tiny'} %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= link_to 'Back to Messages', messages_path, class: 'button back' %>
|
|
</div>
|
|
|