aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request')
-rw-r--r--app/views/request/_request_listing_via_event.rhtml26
-rw-r--r--app/views/request/list.rhtml2
-rw-r--r--app/views/request/similar.rhtml2
-rw-r--r--app/views/request/upload_response.rhtml2
4 files changed, 16 insertions, 16 deletions
diff --git a/app/views/request/_request_listing_via_event.rhtml b/app/views/request/_request_listing_via_event.rhtml
index 1b05b77f7..1449caae7 100644
--- a/app/views/request/_request_listing_via_event.rhtml
+++ b/app/views/request/_request_listing_via_event.rhtml
@@ -25,24 +25,24 @@ end %>
</strong><br>
<% if event.event_type == 'sent' %>
- <%= ('Request sent to') %> <%= public_body_link_absolute(info_request.public_body) %>
- <%= ('by') %> <%= user_link_absolute(info_request.user) %>
- <%= ('on') %> <%= simple_date(event.created_at) %>.
+ <%= _('Request sent to') %> <%= public_body_link_absolute(info_request.public_body) %>
+ <%= _('by') %> <%= user_link_absolute(info_request.user) %>
+ <%= _('on') %> <%= simple_date(event.created_at) %>.
<% elsif event.event_type == 'followup_sent' %>
<%=event.display_status %>
- <%= ('sent to') %> <%= public_body_link_absolute(info_request.public_body) %>
- <%= ('by') %> <%= user_link_absolute(info_request.user) %>
- <%= ('on') %> <%= simple_date(event.created_at) %>.
+ <%= _('sent to') %> <%= public_body_link_absolute(info_request.public_body) %>
+ <%= _('by') %> <%= user_link_absolute(info_request.user) %>
+ <%= _('on') %> <%= simple_date(event.created_at) %>.
<% elsif event.event_type == 'response' %>
<%=event.display_status %>
- <%= ('by') %> <%= public_body_link_absolute(info_request.public_body) %>
- <%= ('to') %> <%= user_link_absolute(info_request.user) %>
- <%= ('on') %> <%= simple_date(event.created_at) %>.
+ <%= _('by') %> <%= public_body_link_absolute(info_request.public_body) %>
+ <%= _('to') %> <%= user_link_absolute(info_request.user) %>
+ <%= _('on') %> <%= simple_date(event.created_at) %>.
<% elsif event.event_type == 'comment' %>
- <%= ('Request to') %> <%= public_body_link_absolute(info_request.public_body) %>
- <%= ('by') %> <%= user_link_absolute(info_request.user) %>.
- <%= ('Annotated by') %> <%= user_link_absolute(event.comment.user) %>
- <%= ('on') %> <%= simple_date(event.created_at) %>.
+ <%= _('Request to') %> <%= public_body_link_absolute(info_request.public_body) %>
+ <%= _('by') %> <%= user_link_absolute(info_request.user) %>.
+ <%= _('Annotated by') %> <%= user_link_absolute(event.comment.user) %>
+ <%= _('on') %> <%= simple_date(event.created_at) %>.
<% else %>
<% raise _("unknown event type indexed ") + event.event_type %>
<% end %>
diff --git a/app/views/request/list.rhtml b/app/views/request/list.rhtml
index a9f5481be..9e12b4175 100644
--- a/app/views/request/list.rhtml
+++ b/app/views/request/list.rhtml
@@ -26,7 +26,7 @@
<% if result.class.to_s == 'InfoRequestEvent' %>
<%= render :partial => 'request/request_listing_via_event', :locals => { :event => result, :info_request => result.info_request } %>
<% else %>
- <p><strong><%= ('Unexpected search result type') %> <%=result.class.to_s%></strong></p>
+ <p><strong><%= _('Unexpected search result type') %> <%=result.class.to_s%></strong></p>
<% end %>
<% end %>
<% end %>
diff --git a/app/views/request/similar.rhtml b/app/views/request/similar.rhtml
index cec650bfe..d9806aeb1 100644
--- a/app/views/request/similar.rhtml
+++ b/app/views/request/similar.rhtml
@@ -15,7 +15,7 @@
<% if result[:model].class.to_s == 'InfoRequestEvent' %>
<%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
<% else %>
- <p><strong><% _('Unexpected search result type ')%><%=result[:model].class.to_s%></strong></p>
+ <p><strong><%= _('Unexpected search result type ')%><%=result[:model].class.to_s%></strong></p>
<% end %>
<% end %>
<% end %>
diff --git a/app/views/request/upload_response.rhtml b/app/views/request/upload_response.rhtml
index d18e03e97..eaa6602a1 100644
--- a/app/views/request/upload_response.rhtml
+++ b/app/views/request/upload_response.rhtml
@@ -37,7 +37,7 @@ file too large for email, use the form below.')%>
<p>
<%= hidden_field_tag 'submitted_upload_response', 1 %>
<%= submit_tag "Upload FOI response" %>
- <% _(' (<strong>patience</strong>, especially for large files, it may take a while!)')%>
+ <%= _(' (<strong>patience</strong>, especially for large files, it may take a while!)')%>
</p>
<% end %>