X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64fb530581ffd21e2522e70e8a2d4c46d666f760..e0b175d3bd3ef655a20273dc2b7f04a8a34bb5f6:/app/views/user/view.html.erb diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index e50610037..bc70545f5 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -1,125 +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) %> -
-<% end %> - -- <% 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 %>
+ |
-
-