diff options
author | francis <francis> | 2008-01-01 17:33:02 +0000 |
---|---|---|
committer | francis <francis> | 2008-01-01 17:33:02 +0000 |
commit | 4dd002e8a66f704d51edf103c932ae0e4973a1bc (patch) | |
tree | b369b5314306316c0a5f7a931aa4acd2029d7e0b | |
parent | 3dd92c91935eaf7d33a58142e0eb7c8a3eb420e3 (diff) |
Don't show last comment column, so table more reasonable
-rw-r--r-- | app/views/admin_public_body/list.rhtml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/admin_public_body/list.rhtml b/app/views/admin_public_body/list.rhtml index 1b4f6db38..27ae929f8 100644 --- a/app/views/admin_public_body/list.rhtml +++ b/app/views/admin_public_body/list.rhtml @@ -6,15 +6,15 @@ <table> <tr> - <% for column in PublicBody.content_columns %> - <th><%= column.human_name %></th> + <% for column in PublicBody.content_columns.map { |c| c.human_name } - [ "Last edit comment" ] %> + <th><%= column %></th> <% end %> </tr> <% for public_body in @public_bodies %> <tr class="<%= cycle('odd', 'even') %>"> <td><%= link_to h(public_body.name), 'show/' + public_body.id.to_s %></td> - <% for column in PublicBody.content_columns.map { |c| c.name } - [ "name" ] %> + <% for column in PublicBody.content_columns.map { |c| c.name } - [ "name", "last_edit_comment" ] %> <td><%=h public_body.send(column) %></td> <% end %> </tr> |