diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-04 15:36:16 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-04 15:36:16 +0000 |
commit | a034172b24cde31bac0f18b842db8c76cfb80bb1 (patch) | |
tree | 82c93a52c8ecdbcdd2f610fe7a477dab0acaa1f6 /app/views | |
parent | 86ba692bf5312b37b6e30778d14daf0a675254bb (diff) | |
download | redmine-a034172b24cde31bac0f18b842db8c76cfb80bb1.tar.gz redmine-a034172b24cde31bac0f18b842db8c76cfb80bb1.zip |
Refactor: convert UsersController to resource
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/users/edit.rhtml | 2 | ||||
-rw-r--r-- | app/views/users/index.rhtml | 2 | ||||
-rw-r--r-- | app/views/users/show.rhtml | 2 |
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> |