X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/921c150b631a9aae5ddff678f3b9368f68f5190e..e0b175d3bd3ef655a20273dc2b7f04a8a34bb5f6:/app/views/user/view.html.erb diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 107535f00..bc70545f5 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -1,150 +1,228 @@ -
<%= t 'user.view.mapper since' %> <%= l @this_user.creation_time %> <%= t 'user.view.ago', :time_in_words_ago => time_ago_in_words(@this_user.creation_time) %>
+ <% if current_user.blocks.exists? %> +<%= t 'user.view.email address' %> <%= @this_user.email %>
-<%= t 'user.view.created from' %> <%= @this_user.creation_ip %>
-<% end %> + <% if current_user and current_user.moderator? and current_user.blocks_created.exists? %> +- <% if @friend.image %> - <%= image_tag url_for_file_column(@friend, "image") %> <% end %> - | -<%= link_to h(@friend.display_name), :controller => 'user', :action => 'view', :display_name => @friend.display_name %> | -
- <% if @friend.home_lon and @friend.home_lat %>
- <% distance = @this_user.distance(@friend) %>
- <% if distance < 1 %>
- <%= t 'user.view.m away', :count => (distance * 1000).round %>
- <% else %>
- <%= t 'user.view.km away', :count => distance.round %>
+
+ <% if current_user and current_user.administrator? %>
+
+
|
-
-
<%= link_to h(nearby.display_name), :controller => 'user', :action => 'view', :display_name => nearby.display_name %> | -
- <% distance = @this_user.distance(nearby) %>
- <% if distance < 1 %>
- <%= t 'user.view.m away', :count => (distance * 1000).round %>
- <% else %>
- <%= t 'user.view.km away', :count => distance.round %>
+ <% if ["active", "suspended"].include? @user.status %>
+ |
-
-