diff options
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/list.rhtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/users/list.rhtml b/app/views/users/list.rhtml index 610234625..5eafda62e 100644 --- a/app/views/users/list.rhtml +++ b/app/views/users/list.rhtml @@ -32,6 +32,9 @@ <% if user.locked? %>
<%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %>
<%= submit_tag l(:button_unlock), :class => "button-small" %>
+ <% elsif user.registered? %> + <%= hidden_field_tag 'user[status]', User::STATUS_ACTIVE %> + <%= submit_tag l(:button_activate), :class => "button-small" %> <% else %>
<%= hidden_field_tag 'user[status]', User::STATUS_LOCKED %>
<%= submit_tag l(:button_lock), :class => "button-small" %>
|