aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-08-27 00:13:48 +0000
committerfrancis <francis>2008-08-27 00:13:48 +0000
commit18d4c071bd737f16bc135727087e5ebdbced97c1 (patch)
treef60ce48093b6e1259cad0c51b7f1a831e603f414
parent5a40a2ffe17d474cba8680c60e25dcc4f99684a8 (diff)
And link to who request was to/by
-rw-r--r--app/views/admin_request/_some_requests.rhtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/admin_request/_some_requests.rhtml b/app/views/admin_request/_some_requests.rhtml
index 3c8f5c489..a5b0bab0e 100644
--- a/app/views/admin_request/_some_requests.rhtml
+++ b/app/views/admin_request/_some_requests.rhtml
@@ -1,6 +1,9 @@
<table>
<tr>
- <% for column in InfoRequest.content_columns.map { |c| c.human_name } - [ "Url title" ] %>
+ <th>Title</th>
+ <th>Authority</th>
+ <th>User</th>
+ <% for column in InfoRequest.content_columns.map { |c| c.human_name } - [ "Url title", "Title" ] %>
<th><%= column %></th>
<% end %>
</tr>
@@ -8,6 +11,8 @@
<% for info_request in info_requests %>
<tr class="<%= cycle('odd', 'even') %>">
<td><%= link_to h(info_request.title), (deep ? '../../request/show/' : 'show/') + info_request.id.to_s %></td>
+ <td><%= link_to h(info_request.public_body.name), (deep ? '../../body/show/' : '../body/show/') + info_request.public_body.id.to_s %></td>
+ <td><%= link_to h(info_request.user.name), (deep ? '../../user/show/' : '../user/show/') + info_request.user.id.to_s %></td>
<% for column in InfoRequest.content_columns.map { |c| c.name } - [ "title", "url_title" ] %>
<td><%=h info_request.send(column) %></td>
<% end %>