From c799665474d3b96bee1a32e1275187bebb77ab5f Mon Sep 17 00:00:00 2001 From: Pablo Brasero Date: Thu, 18 Dec 2025 12:44:15 +0000 Subject: [PATCH] Swap actions around for consistency with users/lists --- app/views/users/show.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 72c4a28bd..f644f7b5e 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -180,27 +180,27 @@ <% end %> - <% if @user.may_suspend? %> + <% if @user.may_confirm? %>
  • - <%= link_to t(".suspend_user"), user_status_path(@user, :event => "suspend"), :method => :put, :data => { :confirm => t(".confirm") } %> + <%= link_to t(".confirm_user"), user_status_path(@user, :event => "confirm"), :method => :put, :data => { :confirm => t(".confirm") } %>
  • <% end %> - <% if @user.may_unsuspend? %> + <% if @user.may_unconfirm? %>
  • - <%= link_to t(".unsuspend_user"), user_status_path(@user, :event => "unsuspend"), :method => :put, :data => { :confirm => t(".confirm") } %> + <%= link_to t(".unconfirm_user"), user_status_path(@user, :event => "unconfirm"), :method => :put, :data => { :confirm => t(".confirm") } %>
  • <% end %> - <% if @user.may_confirm? %> + <% if @user.may_suspend? %>
  • - <%= link_to t(".confirm_user"), user_status_path(@user, :event => "confirm"), :method => :put, :data => { :confirm => t(".confirm") } %> + <%= link_to t(".suspend_user"), user_status_path(@user, :event => "suspend"), :method => :put, :data => { :confirm => t(".confirm") } %>
  • <% end %> - <% if @user.may_unconfirm? %> + <% if @user.may_unsuspend? %>
  • - <%= link_to t(".unconfirm_user"), user_status_path(@user, :event => "unconfirm"), :method => :put, :data => { :confirm => t(".confirm") } %> + <%= link_to t(".unsuspend_user"), user_status_path(@user, :event => "unsuspend"), :method => :put, :data => { :confirm => t(".confirm") } %>
  • <% end %> -- 2.39.5