2012-07-04 03:48:01 +02:00
|
|
|
<div class="box wide">
|
|
|
|
<div class="legend" style="float: right;">
|
2013-01-24 21:06:10 +01:00
|
|
|
<% if @message.author_user_id == @user.id %>
|
|
|
|
<a href="/messages/sent">Back to Sent Messages</a>
|
|
|
|
<% else %>
|
|
|
|
<a href="/messages">Back to Messages</a>
|
|
|
|
<% end %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="legend">
|
|
|
|
<%= @message.subject %>
|
|
|
|
|
|
|
|
<div class="sublegend">
|
|
|
|
Sent from <a href="/u/<%= @message.author.username %>"><%=
|
|
|
|
@message.author.username %></a>
|
|
|
|
to
|
|
|
|
<a href="/u/<%= @message.recipient.username %>"><%=
|
|
|
|
@message.recipient.username %></a>
|
2013-02-22 18:22:39 +01:00
|
|
|
<%= raw(time_ago_in_words_label(@message.created_at)) %> ago
|
2012-07-04 03:48:01 +02:00
|
|
|
</div>
|
2013-12-24 00:15:58 +01:00
|
|
|
</div>
|
2012-07-04 03:48:01 +02:00
|
|
|
|
|
|
|
<div class="boxline">
|
|
|
|
<%= raw @message.linkified_body %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="boxline">
|
|
|
|
<div style="float: left;">
|
|
|
|
<%= form_tag message_url(@message.short_id), :method => :delete do %>
|
|
|
|
<%= submit_tag "Delete Message" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2013-02-14 01:50:51 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<div style="float: left; padding-left: 1em;">
|
|
|
|
<%= form_tag message_url(@message.short_id) + "/keep_as_new",
|
|
|
|
:method => :post do %>
|
|
|
|
<%= submit_tag "Keep As New" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="clear: both;"></div>
|
2013-02-14 01:50:51 +01:00
|
|
|
|
2012-07-04 03:48:01 +02:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<div class="legend">
|
|
|
|
Compose Reply To <%= @new_message.recipient_username %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= form_for @new_message, :method => :post do |f| %>
|
|
|
|
<%= f.hidden_field :recipient_username %>
|
|
|
|
|
|
|
|
<%= error_messages_for @new_message %>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2012-07-05 01:58:58 +02:00
|
|
|
<%= f.text_field :subject, :style => "width: 500px;",
|
|
|
|
:autocomplete => "off" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
2012-07-05 01:58:58 +02:00
|
|
|
<%= f.text_area :body, :style => "width: 500px;", :rows => 5,
|
|
|
|
:autocomplete => "off" %>
|
2012-07-04 03:48:01 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="boxline">
|
|
|
|
<p></p>
|
|
|
|
<%= submit_tag "Send Message" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|