aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-05-14 17:32:30 +0100
committerGareth Rees <gareth@mysociety.org>2015-06-04 13:51:17 +0100
commit98cf36fe876725a7ed8a11d5291e923f698ec5ae (patch)
tree69224b4bf36e6736e82a33846bd91d7caa889799
parentf54a8301b951b9320f7cd0fcbc00355763f974c4 (diff)
Only use and/or for control flow
-rw-r--r--app/views/request/_request_listing_via_event.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/request/_request_listing_via_event.html.erb b/app/views/request/_request_listing_via_event.html.erb
index 43ab1b5c8..7ad568829 100644
--- a/app/views/request/_request_listing_via_event.html.erb
+++ b/app/views/request/_request_listing_via_event.html.erb
@@ -7,7 +7,7 @@ end %>
<span class="head">
<% if event.is_incoming_message? %>
<%= link_to highlight_words(event.info_request.title, @highlight_words), incoming_message_path(event.incoming_message) %>
- <% elsif event.is_outgoing_message? and event.event_type == 'followup_sent' %>
+ <% elsif event.is_outgoing_message? && event.event_type == 'followup_sent' %>
<%= link_to highlight_words(event.info_request.title, @highlight_words), outgoing_message_path(event.outgoing_message) %>
<% elsif event.is_comment? %>
<%= link_to highlight_words(event.info_request.title, @highlight_words), comment_path(event.comment) %>