diff options
author | francis <francis> | 2008-04-03 15:39:39 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-03 15:39:39 +0000 |
commit | 600c09a5e0f96e3b22527ce9ec69c164277483d8 (patch) | |
tree | 9081a68b5c234c54f2fa56e77098196d08528507 | |
parent | 7c411dec783e25bc952b6262322f00de5356b13d (diff) |
Show events higher up in admin interface.
-rw-r--r-- | app/views/admin_request/show.rhtml | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml index f9fb4ce45..54bac86a2 100644 --- a/app/views/admin_request/show.rhtml +++ b/app/views/admin_request/show.rhtml @@ -17,6 +17,26 @@ | <%= link_to "Edit", '../edit/' + @info_request.id.to_s %> </p> +<h2>Events</h2> + +<table> + <tr> + <th>Id</th> + <% for column in InfoRequestEvent.content_columns %> + <th><%= column.human_name %></th> + <% end %> + </tr> + +<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %> + <tr class="<%= cycle('odd', 'even') %>"> + <td><%=h info_request_event.id %></td> + <% for column in InfoRequestEvent.content_columns.map { |c| c.name } %> + <td><%=h info_request_event.send(column) %></td> + <% end %> + </tr> +<% end %> +</table> + <h2>Outgoing messages</h2> <table> @@ -67,25 +87,3 @@ <% end %> </table> - -<h2>Events</h2> - -<table> - <tr> - <th>Id</th> - <% for column in InfoRequestEvent.content_columns %> - <th><%= column.human_name %></th> - <% end %> - </tr> - -<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %> - <tr class="<%= cycle('odd', 'even') %>"> - <td><%=h info_request_event.id %></td> - <% for column in InfoRequestEvent.content_columns.map { |c| c.name } %> - <td><%=h info_request_event.send(column) %></td> - <% end %> - </tr> -<% end %> -</table> - - |