X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7f598ab412674ce5a78da98c54aa2fe2e4a05792..de6aa3f01512986cf9690def3e9004f755da750a:/app/views/user/view.html.erb diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index cf74fc0e0..0b48d28d2 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -1,136 +1,143 @@ <% content_for :heading do %>
- <%= 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' %> + <%= t '.mapper since' %> <%= l @user.creation_time.to_date, :format => :long %> + <% unless @user.terms_agreed %> + | + <%= t '.ct status' %> + <% if @user.terms_seen? -%> + <%= t '.ct declined' %> + <% else -%> + <%= t '.ct undecided' %> + <% end -%> <% end -%>
<%= raw(t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name)) %>
+<%= raw(t '.if set location', :settings_link => (link_to t('.settings_link_text'), :controller => 'user', :action => 'account', :display_name => current_user.display_name)) %>