summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/users/edit.rhtml2
-rw-r--r--app/views/users/index.rhtml2
-rw-r--r--app/views/users/show.rhtml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/users/edit.rhtml b/app/views/users/edit.rhtml
index f5538c167..0d9cb0133 100644
--- a/app/views/users/edit.rhtml
+++ b/app/views/users/edit.rhtml
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to l(:label_profile), {:controller => 'users', :action => 'show', :id => @user}, :class => 'icon icon-user' %>
+<%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %>
<%= change_status_link(@user) %>
</div>
diff --git a/app/views/users/index.rhtml b/app/views/users/index.rhtml
index 804678959..69ad73747 100644
--- a/app/views/users/index.rhtml
+++ b/app/views/users/index.rhtml
@@ -30,7 +30,7 @@
<tbody>
<% for user in @users -%>
<tr class="user <%= cycle("odd", "even") %> <%= %w(anon active registered locked)[user.status] %>">
- <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), :action => 'edit', :id => user %></td>
+ <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %></td>
<td class="firstname"><%= h(user.firstname) %></td>
<td class="lastname"><%= h(user.lastname) %></td>
<td class="email"><%= mail_to(h(user.mail)) %></td>
diff --git a/app/views/users/show.rhtml b/app/views/users/show.rhtml
index a2f90226c..afab71110 100644
--- a/app/views/users/show.rhtml
+++ b/app/views/users/show.rhtml
@@ -1,5 +1,5 @@
<div class="contextual">
-<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
+<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
</div>
<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>