From: Andy Allan Date: Wed, 15 Sep 2021 10:57:58 +0000 (+0100) Subject: Move the admin actions into line with the other links X-Git-Tag: live~2058^2~5 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3b1ef97c69a3279324fd07a6c49d8bf7ba432282 Move the admin actions into line with the other links This avoids wrapping them under the user profile picture --- 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 %>