X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3f8cf322723750aa4c8d062d4a727f9107ceccb4..764f808d5a5faebc835ed0f588bae4a306ad687d:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 0ea411811..5aaeabb23 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,178 +1,196 @@
<% content_for :heading do %>
-
<%= t ".email address" %> <%= @user.email %>
- <% unless @user.creation_ip.nil? -%>
-
<%= t ".created from" %> <%= @user.creation_ip %>
+
+ <% 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 %>