From 10c6417874129f03f3d2125c5df460865bad2797 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 May 2014 17:02:37 -0400 Subject: clean up grep-able issues in forms (mostly using

instead of

) --- app/views/pms/show.html.erb | 76 ++++++++++++++++++++++----------------------- 1 file changed, 37 insertions(+), 39 deletions(-) (limited to 'app/views/pms/show.html.erb') diff --git a/app/views/pms/show.html.erb b/app/views/pms/show.html.erb index 2c93102..35deaa9 100644 --- a/app/views/pms/show.html.erb +++ b/app/views/pms/show.html.erb @@ -1,48 +1,46 @@ -

- Participants: - <% receps = @pm.conversation.participants %> - <% receps.each do |recep| %> - <% #unless recep == @pm.conversation.last_sender %> - <%= recep.user_name %> - <%= "," %> - <% #end %> - <% end %> - <%= "and the NSA" %> -

- -

- Subject: - <%= @pm.conversation.subject %> -

+<%= link_to '« Back to all private messages', pms_path, class: :breadcrumb %> + +
+

+ Participants: + <% receps = @pm.conversation.participants %> + <% receps.each do |recep| %> + <% #unless recep == @pm.conversation.last_sender %> + <%= recep.user_name %>, + <% #end %> + <% end %> + <%= "and the NSA" %> +

+ +

+ Subject: + <%= @pm.conversation.subject %> +

+
<% receipts = @pm.conversation.receipts_for current_user %> <% receipts.each do |receipt| %> - <% message = receipt.message %> - -

________________________________________________

- -

- <%= message.sender.user_name %> - <%= ":" %> - <%= message.body %> -

- + <% message = receipt.message %> +
+

+ <%= message.sender.user_name %>: + <%= message.body %> +

<% end %> -

________________________________________________

-

- <% @pm.message = "" %> - <%= form_for(@pm) do |f| %> -

- <%= f.text_area :message %> -
+
-
- <%= submit_tag("Reply", :class => "signup") %> -
+
+ <% @pm.message = "" %> + <%= form_for(@pm) do |f| %> +
+ <%= f.text_area :message %> +
- <% end %> -

+
+ <%= submit_tag("Reply", :class => "signup") %> +
+ <% end %> +
<% @pm.conversation.mark_as_read(current_user) %> -<%= link_to 'Back', pms_path %> -- cgit v1.2.3