diff options
| author | hukl <contact@smyck.org> | 2009-10-20 21:21:37 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-20 21:21:37 +0200 |
| commit | 324753b94474a18ffbc8cf243e502b71b67eab86 (patch) | |
| tree | 095fdff9f6471b73505811396e7dab24d7eb80d6 /app/views/users/_user.html.erb | |
| parent | aa751d8740ceabf481afa3c0a6a3db79e30b0983 (diff) | |
cleaned up the user views a bit
Diffstat (limited to 'app/views/users/_user.html.erb')
| -rw-r--r-- | app/views/users/_user.html.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/users/_user.html.erb b/app/views/users/_user.html.erb new file mode 100644 index 0000000..90e8b88 --- /dev/null +++ b/app/views/users/_user.html.erb | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | <tr> | ||
| 2 | <td><%= user.login %></td> | ||
| 3 | <td><%= link_to "show", user_path(user) %></td> | ||
| 4 | <td> | ||
| 5 | <% if current_user.admin? || current_user == user %> | ||
| 6 | <%= link_to "edit", edit_user_path(user) %> | ||
| 7 | <% end %> | ||
| 8 | </td> | ||
| 9 | </tr> \ No newline at end of file | ||
