aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_request/_some_requests.rhtml
blob: f2b8e7beab31a9bd02cfbb7e59531fd3c116f734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<table>
  <tr>
  <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>
  
<% for info_request in info_requests %>
  <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>
  <% for column in InfoRequest.content_columns.map { |c| c.name } - [ "title", "url_title" ] %>
    <td><%=h info_request.send(column) %></td>
  <% end %>
  </tr>
<% end %>
</table>