From 3b1ef97c69a3279324fd07a6c49d8bf7ba432282 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Sep 2021 11:57:58 +0100 Subject: [PATCH] Move the admin actions into line with the other links This avoids wrapping them under the user profile picture --- app/views/users/show.html.erb | 88 +++++++++++++++++------------------ 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 1c5d3dc64..d0d448f97 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -130,55 +130,55 @@ <% end -%>

- - - <% if can?(:set_status, User) || can?(:destroy, User) %> - + <% end %> + + <% if current_user and current_user.administrator? -%> +
+ <%= t ".email address" %> <%= @user.email %> + <% unless @user.creation_ip.nil? -%> + <%= t ".created from" %> <%= @user.creation_ip %> + <% end -%> + <%= t ".status" %> <%= @user.status.capitalize %> + <%= t ".spam score" %> <%= @user.spam_score %> +
<% end -%> - <%= t ".status" %> <%= @user.status.capitalize %> - <%= t ".spam score" %> <%= @user.spam_score %> - <% end -%> + <% end %>
<%= @user.description.to_html %>
-- 2.39.5