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/person/list.rhtml |
Import legacy manman source
Copied from www.ffgraz.net
Diffstat (limited to 'app/views/person/list.rhtml')
-rw-r--r-- | app/views/person/list.rhtml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/person/list.rhtml b/app/views/person/list.rhtml new file mode 100644 index 0000000..37b8128 --- /dev/null +++ b/app/views/person/list.rhtml @@ -0,0 +1,20 @@ + +<%= render :partial => "person/nav" %> +<h1>Personen</h1> +<table> + <th>Nickname</th> + <th>Email</th> + <th>Tel.</th> + +<% @persons.each do |person| %> + <tr> + <td><%= person.nick %></td> + <td><%= mail_to person.email, person.email, :encode => "hex" %></td> + <td><%= person.tel %></td> + <td><%= link_to 'Show', :action => 'show', :id => person %></td> + <td><%= link_to 'Edit', :action => 'edit', :id => person %></td> + <td><%= link_to 'Destroy', { :action => 'destroy', :id => person }, :confirm => 'Are you sure?', :post => true %></td> + </tr> +<% end %> +</table> + |