diff options
Diffstat (limited to 'app/views/node/_plist.rhtml')
-rw-r--r-- | app/views/node/_plist.rhtml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/node/_plist.rhtml b/app/views/node/_plist.rhtml new file mode 100644 index 0000000..c329d4c --- /dev/null +++ b/app/views/node/_plist.rhtml @@ -0,0 +1,17 @@ +<table> + <th>Name</th> + <th>Location</th> + <th>Kommentar</th> + +<% @nodes.each do |node| %> + <tr> + <td><%= node.name %></td> + <td><%= node.location.name %></td> + <td><%= node.comment %></td> + <td><%= link_to 'Show', :action => 'show', :controller => 'node', :id => node %></td> + <td><%= link_to 'Edit', :action => 'edit', :controller => 'node', :id => node %></td> + <td><%= link_to 'Destroy', { :action => 'destroy', :controller => 'node', :id => node }, :confirm => 'Are you sure?', :post => true %></td> + </tr> +<% end %> +</table> + |