diff options
author | francis <francis> | 2008-05-15 16:33:16 +0000 |
---|---|---|
committer | francis <francis> | 2008-05-15 16:33:16 +0000 |
commit | c4d5a60dbca35da5b0e15e958b7e19be5e96e75a (patch) | |
tree | 6c3cf38f7fbba3857af90eb6dfff0eef1ebf6873 | |
parent | b09af791ec5e9da442a43739dee71d593b3f57c3 (diff) |
Put date on each piece of correspondence.
-rw-r--r-- | app/views/request/_correspondence.rhtml | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml index cf7864041..79b164029 100644 --- a/app/views/request/_correspondence.rhtml +++ b/app/views/request/_correspondence.rhtml @@ -7,10 +7,7 @@ end if not incoming_message.nil? %> <div class="correspondence" id="incoming-<%=incoming_message.id.to_s%>"> - <% if @previous_date.nil? or (@previous_date != incoming_message.sent_at.to_date) %> - <h2><%= simple_date(incoming_message.sent_at) %></h2> - <% end - @previous_date = incoming_message.sent_at.to_date %> + <h2><%= simple_date(incoming_message.sent_at) %></h2> <%= render :partial => 'bubble', :locals => { :incoming_message => incoming_message, :body => incoming_message.get_body_for_html_display(@collapse_quotes), :attachments => incoming_message.get_attachments_for_display } %> @@ -28,10 +25,7 @@ elsif info_request_event.event_type == 'sent' || info_request_event.event_type = outgoing_message = info_request_event.outgoing_message %> <div class="correspondence" id="outgoing-<%=outgoing_message.id.to_s%>"> - <% if @previous_date.nil? or (@previous_date != info_request_event.created_at.to_date) %> - <h2><%= simple_date(info_request_event.created_at) %></h2> - <% end - @previous_date = info_request_event.created_at.to_date %> + <h2><%= simple_date(info_request_event.created_at) %></h2> <%= render :partial => 'bubble', :locals => { :body => outgoing_message.get_body_for_html_display(), :attachments => nil } %> |