X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2638cd525262321f28479e5c5598866b4e2fd93e..8857fe362490c3cd940a51f46568dc080897c4bd:/app/views/user/view.html.erb diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 8ba4c0725..31e9d7585 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -41,9 +41,9 @@ <%= link_to t('user.view.comments'), :controller => 'diary_entry', :action => 'comments', :display_name => @this_user.display_name %> | <% if @user and @user.is_friends_with?(@this_user) %> - <%= link_to t('user.view.remove as friend'), :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name, :method => :post %> + <%= link_to t('user.view.remove as friend'), remove_friend_path(:display_name => @this_user.display_name), :method => :post %> <% else %> - <%= link_to t('user.view.add as friend'), :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name, :method => :post %> + <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => @this_user.display_name), :method => :post %> <% end %> <% if @this_user.blocks.exists? %> | @@ -78,16 +78,20 @@ <% end %> -

<%= t 'user.view.mapper since' %> <%= l @this_user.creation_time, :format => :friendly %> <%= t 'user.view.ago', :time_in_words_ago => time_ago_in_words(@this_user.creation_time) %>

+
<%= @this_user.description.to_html %>
-

<%= t 'user.view.ct status' %> +

+<%= t 'user.view.mapper since' %> <%= l @this_user.creation_time.to_date, :format => :long %> +/ +<%= t 'user.view.ct status' %> <% if not @this_user.terms_agreed.nil? -%> -<%= t 'user.view.ct accepted', :ago =>time_ago_in_words(@this_user.terms_agreed) %> +<%= t 'user.view.ct accepted', :ago =>time_ago_in_words(@this_user.terms_agreed) %> <% elsif not @this_user.terms_seen? -%> <%= t 'user.view.ct undecided' %> <% else -%> <%= t 'user.view.ct declined' %> <% end -%> +

<% if @user and @user.administrator? -%> @@ -99,10 +103,6 @@

<%= t 'user.view.spam score' %> <%= @this_user.spam_score %>

<% end -%> -

<%= t 'user.view.description' %>

- -
<%= @this_user.description.to_html %>
- <% if @user and @this_user.id == @user.id %>
<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>