<% if @message.author_user_id == @user.id %> Back to Sent Messages <% else %> Back to Messages <% end %>
<%= @message.subject %>
Sent from <%= @message.author.username %> to <%= @message.recipient.username %> <%= time_ago_in_words(@message.created_at) %> ago
<%= raw @message.linkified_body %>

<%= form_tag message_url(@message.short_id), :method => :delete do %> <%= submit_tag "Delete Message" %> <% end %>
<%= form_tag message_url(@message.short_id) + "/keep_as_new", :method => :post do %> <%= submit_tag "Keep As New" %> <% end %>

Compose Reply To <%= @new_message.recipient_username %>
<%= form_for @new_message, :method => :post do |f| %> <%= f.hidden_field :recipient_username %> <%= error_messages_for @new_message %>
<%= f.text_field :subject, :style => "width: 500px;", :autocomplete => "off" %>
<%= f.text_area :body, :style => "width: 500px;", :rows => 5, :autocomplete => "off" %>

<%= submit_tag "Send Message" %>
<% end %>