diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-06-06 13:58:56 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-06-06 19:35:12 +0100 |
commit | 917fe1b5debaea6414a5525b74768298b9cbe675 (patch) | |
tree | ad971bb87b2492fd8093353df00ba808985e295a | |
parent | 24b110837a5e7e92f0dfcc5a0e0dfc53b9f84b29 (diff) |
Handle external users
Requests may now have been made by an external user.
-rw-r--r-- | app/views/admin_request/_some_requests.rhtml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/views/admin_request/_some_requests.rhtml b/app/views/admin_request/_some_requests.rhtml index f2b8e7bea..dc11e0f55 100644 --- a/app/views/admin_request/_some_requests.rhtml +++ b/app/views/admin_request/_some_requests.rhtml @@ -12,7 +12,15 @@ <tr class="<%= cycle('odd', 'even') %>"> <td><%= request_both_links(info_request) %></td> <td><%= public_body_both_links(info_request.public_body) %></td> - <td><%= user_both_links(info_request.user) %></td> + <% if info_request.is_external? %> + <% if info_request.external_user_name.nil? %> + <td><i><%= _("Anonymous user") %></i></td> + <% else %> + <td><%= h(info_request.external_user_name) %></td> + <% end %> + <% else %> + <td><%= user_both_links(info_request.user) %></td> + <% end %> <% for column in InfoRequest.content_columns.map { |c| c.name } - [ "title", "url_title" ] %> <td><%=h info_request.send(column) %></td> <% end %> |