X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d1d4f8192da5a266cddb17bb8970b2b04387888c..dbd88d893f3c3fce9cafd666b94396988646d81f:/app/views/user/view.html.erb diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 41d7b0064..417b07bd0 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -81,9 +81,7 @@ <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => @this_user.display_name) %> <% end %> -
  • - <%= link_to t('user.view.report'), new_issue_url(reportable_id: @this_user.id, reportable_type: @this_user.class.name, reported_user_id: @this_user.id) %> -
  • + <% if @this_user.blocks.exists? %>
  • <%= link_to t('user.view.block_history'), :controller => 'user_blocks', :action => 'blocks_on', :display_name => @this_user.display_name %> @@ -143,19 +141,27 @@

    <%= 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) %> - <% elsif not @this_user.terms_seen? -%> - <%= t 'user.view.ct undecided' %> - <% else -%> - <%= t 'user.view.ct declined' %> + <% unless @this_user.terms_agreed %> + | + <%= t 'user.view.ct status' %> + <% if @this_user.terms_seen? -%> + <%= t 'user.view.ct declined' %> + <% else -%> + <%= t 'user.view.ct undecided' %> + <% end -%> <% end -%>

    + <% if @user and @this_user.id != @user.id %> +
    + <%= link_to new_issue_url(reportable_id: @this_user.id, reportable_type: @this_user.class.name, reported_user_id: @this_user.id,referer: request.fullpath), :title => t('user.view.report') do%> +  ⚐ + <% end %> +
    + <% end %> +
    <%= @this_user.description.to_html %>