diff options
author | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 16:39:42 +0200 |
---|---|---|
committer | Nicolas Braud-Santoni <nicoo@ffgraz.net> | 2016-08-07 16:39:42 +0200 |
commit | b6ca062670b342344df08b53fb216db619ef42bc (patch) | |
tree | 7680ac6b407239f6b7272c937e42f688b8de542c /app/views/node/_plist.rhtml |
Import legacy manman source
Copied from www.ffgraz.net
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> + |