blob: dc11e0f55bd5ed7d34cf006be6abed70a4ca9432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<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>
<% 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 %>
</tr>
<% end %>
</table>
|