diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-04-06 13:15:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-04-06 13:15:09 +0000 |
commit | 0249ae5f500063f4d08ff09a7071cb949a534316 (patch) | |
tree | 2d544b6acb574468394dd462734b98d87bab890b /app/views | |
parent | beff2c54bc325e8a8f838d90aa122be823423114 (diff) | |
download | redmine-0249ae5f500063f4d08ff09a7071cb949a534316.tar.gz redmine-0249ae5f500063f4d08ff09a7071cb949a534316.zip |
Preserve status filter and page number when using lock/unlock/activate links on the users list (closes #998).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1334 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/users/list.rhtml | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/app/views/users/list.rhtml b/app/views/users/list.rhtml index e12aa3425..d89672d19 100644 --- a/app/views/users/list.rhtml +++ b/app/views/users/list.rhtml @@ -33,17 +33,7 @@ <td align="center"><%= image_tag('true.png') if user.admin? %></td> <td class="created_on" align="center"><%= format_time(user.created_on) %></td> <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td> - <td> - <small> - <% if user.locked? -%> - <%= link_to l(:button_unlock), {:action => 'edit', :id => user, :user => {:status => User::STATUS_ACTIVE}}, :method => :post, :class => 'icon icon-unlock' %> - <% elsif user.registered? -%> - <%= link_to l(:button_activate), {:action => 'edit', :id => user, :user => {:status => User::STATUS_ACTIVE}}, :method => :post, :class => 'icon icon-unlock' %> - <% else -%> - <%= link_to l(:button_lock), {:action => 'edit', :id => user, :user => {:status => User::STATUS_LOCKED}}, :method => :post, :class => 'icon icon-lock' %> - <% end -%> - </small> - </td> + <td><small><%= change_status_link(user) %></small></td> </tr> <% end -%> </tbody> |