diff options
Diffstat (limited to 'app/views/person/_pshow.rhtml')
-rw-r--r-- | app/views/person/_pshow.rhtml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/person/_pshow.rhtml b/app/views/person/_pshow.rhtml new file mode 100644 index 0000000..61a1f32 --- /dev/null +++ b/app/views/person/_pshow.rhtml @@ -0,0 +1,20 @@ +<% if @person != nil %> +<table> + <tr> + <td>Nick:</td><td><%= @person.nick %></td> + </tr> + <tr> + <td>Email:</td><td><%= mail_to @person.email, @person.email, :encode => 'hex' %></td> + </tr> + <tr> + <td>Tel:</td><td><%= @person.tel %></td> + </tr> +</table> +<p> + <%= link_to 'Show', { :action => 'show', :controller => 'person', :id => @person.id } %> | + <%= link_to 'Edit', { :action => 'edit', :controller => 'person', :id => @person.id } %> | + <%= link_to 'Change Password', { :action => 'change_pass', + :controller => 'person', + :id => @person.id } %> +</p> +<% end %> |