1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-01 13:19:39 +00:00
redmine/app/views/context_menus/users.html.erb
Go MAEDA cd70187c2f Introduces a UserQuery model for admin/users (#37674).
Patch by Jens Krämer.


git-svn-id: https://svn.redmine.org/redmine/trunk@21823 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-09-20 03:16:05 +00:00

25 lines
839 B
Plaintext

<ul>
<% if @user %>
<% if @user.locked? %>
<li>
<%= context_menu_link l(:button_unlock), user_path(@user, user: { status: User::STATUS_ACTIVE }, back_url: @back), method: :put, class: 'icon icon-unlock' %>
</li>
<% elsif User.current != @user %>
<li>
<%= context_menu_link l(:button_lock), user_path(@user, user: { status: User::STATUS_LOCKED }, back_url: @back), method: :put, class: 'icon icon-lock' %>
</li>
<% end %>
<li>
<%= context_menu_link l(:button_edit), edit_user_path(@user, back_url: @back), class: 'icon icon-edit' %>
</li>
<% unless User.current == @user %>
<li>
<%= context_menu_link l(:button_delete), user_path(@user, back_url: @back),
method: :delete, class: 'icon icon-del' %>
</li>
<% end %>
<% end %>
</ul>