summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'projects/devdashboard/app/views/herds/list.rhtml')
-rw-r--r--projects/devdashboard/app/views/herds/list.rhtml27
1 files changed, 27 insertions, 0 deletions
diff --git a/projects/devdashboard/app/views/herds/list.rhtml b/projects/devdashboard/app/views/herds/list.rhtml
new file mode 100644
index 0000000..65c7e61
--- /dev/null
+++ b/projects/devdashboard/app/views/herds/list.rhtml
@@ -0,0 +1,27 @@
+<h1>Listing herds</h1>
+
+<table>
+ <tr>
+ <% for column in Herd.content_columns %>
+ <th><%= column.human_name %></th>
+ <% end %>
+ </tr>
+
+<% for herd in @herds %>
+ <tr>
+ <% for column in Herd.content_columns %>
+ <td><%=h herd.send(column.name) %></td>
+ <% end %>
+ <td><%= link_to 'Show', :action => 'show', :id => herd %></td>
+ <td><%= link_to 'Edit', :action => 'edit', :id => herd %></td>
+ <td><%= link_to 'Destroy', { :action => 'destroy', :id => herd }, :confirm => 'Are you sure?', :method => :post %></td>
+ </tr>
+<% end %>
+</table>
+
+<%= link_to 'Previous page', { :page => @herd_pages.current.previous } if @herd_pages.current.previous %>
+<%= link_to 'Next page', { :page => @herd_pages.current.next } if @herd_pages.current.next %>
+
+<br />
+
+<%= link_to 'Load from XML', :action => 'load_from_xml' %>