aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-07-29 07:59:28 +0000
committerfrancis <francis>2009-07-29 07:59:28 +0000
commit149c78e856e37e9a951cbc6da6ae83a595d2f5b9 (patch)
treec3c827b1eb277ca18d95aeb4bb0b23276d356c28
parentb8ca2dab3cfc528c35a5498fd890c982b2e40c12 (diff)
Put date in first column so can see it on narrow screen.
-rw-r--r--app/views/admin_public_body/show.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin_public_body/show.rhtml b/app/views/admin_public_body/show.rhtml
index 3366b73ce..cf12026fd 100644
--- a/app/views/admin_public_body/show.rhtml
+++ b/app/views/admin_public_body/show.rhtml
@@ -39,17 +39,18 @@
<h2>History</h2>
<table border="1">
<tr>
+<th>Updated at</th>
<%
history_columns = PublicBody.content_columns + [] # force dup
history_columns.delete_if {|c| ['created_at', 'updated_at', 'first_letter'].include?(c.name)}
for column in history_columns %>
<th><%= column.human_name %></th>
<% end %>
-<th>Updated at</th>
</tr>
<%# There may be an option to versions() to specify order, but I can't find it. TB 2009-03-09 %>
<% for historic_public_body in @public_body.reverse_sorted_versions %>
<tr class="<%= cycle('odd', 'even') %>">
+ <td><%=h historic_public_body.updated_at %></td>
<% for column in history_columns %>
<%
value = h(historic_public_body.send(column.name))
@@ -62,7 +63,6 @@
<%=value%>
</td>
<% end %>
- <td><%=h historic_public_body.updated_at %></td>
</tr>
<% end %>
</table>