X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/908a6ef409518d86bfd2cdf0d2a82a6c312821c8..d66b4b3d2f379ed61ef2b33bb2b0507267827f98:/app/views/user/view.html.erb?ds=sidebyside diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 931037319..0acb3f014 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -1,127 +1,233 @@ -
-<%= 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 %>
+ |
-
-