aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-10-19 19:28:29 +0000
committerfrancis <francis>2009-10-19 19:28:29 +0000
commit1d81dc681270939393dec54c1f2fbf616708c150 (patch)
treeb3bc7251b0b403a92325229f9191e2620655b953
parent6bf378c39d05595f4f4251202ae6de1be97d1dff (diff)
Using uniform syntax, and tidying.
#id links for resent correspondence areas.
-rw-r--r--app/views/request/_correspondence.rhtml11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml
index b63b5fae3..90beb4050 100644
--- a/app/views/request/_correspondence.rhtml
+++ b/app/views/request/_correspondence.rhtml
@@ -30,7 +30,7 @@ if not incoming_message.nil?
</p>
</div>
<%
-elsif info_request_event.event_type == 'sent' || info_request_event.event_type == 'followup_sent'
+elsif [ 'sent', 'followup_sent' ].include?(info_request_event.event_type)
outgoing_message = info_request_event.outgoing_message
%>
<div class="correspondence" id="outgoing-<%=outgoing_message.id.to_s%>">
@@ -58,7 +58,7 @@ elsif info_request_event.event_type == 'sent' || info_request_event.event_type =
</p>
</div>
<% elsif [ 'resent', 'followup_resent' ].include?(info_request_event.event_type) %>
- <div class="correspondence">
+ <div class="correspondence" id="outgoing-<%=outgoing_message.id.to_s%>">
<h2>
<%= simple_date(info_request_event.created_at) %>
</h2>
@@ -79,10 +79,5 @@ elsif info_request_event.event_type == 'sent' || info_request_event.event_type =
comment = info_request_event.comment
%>
<%= render :partial => 'comment/single_comment', :locals => { :comment => comment } %>
-<%
-end
-
-%>
-
-<% # end %>
+<% end %>