X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26af28b7cb72f128b3426ab663dd6f042cfd6642..487bba4088e544a351b4ac0c9cb7bed2d6247e89:/app/views/accounts/edit.html.erb diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index f15bc195c..5c626fc9f 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -3,7 +3,7 @@ <% end %> <% content_for :heading do %> -

<%= t ".my settings" %>

+

<%= t ".my_account" %>

<% end %> <%= render :partial => "settings_menu" %> @@ -19,37 +19,32 @@
- <%= f.select(:auth_provider, Auth.providers, :hide_label => true, :wrapper => { :class => "col-auto mb-0" }) %> + <%= f.select :auth_provider, + Auth.providers.map { |provider| [I18n.t("auth.providers.#{provider}"), provider] }, + :include_blank => t("auth.providers.none"), + :hide_label => true, + :wrapper => { :class => "col-auto mb-0" } %> <%= f.text_field(:auth_uid, :hide_label => true, :wrapper => { :class => "col mb-0" }) %>
(" target="_new"><%= t ".openid.link text" %>)
-
- - - <% if current_user.data_public? %> - <%= t ".public editing.enabled" %> - (" target="_new"><%= t ".public editing.enabled link text" %>) - <% else %> - <%= t ".public editing.disabled" %> - (<%= t ".public editing.disabled link text" %>) - <% end %> - -
- -
- +
+ <% if current_user.terms_agreed? %> <%= t ".contributor terms.agreed" %> (" target="_new"><%= t ".contributor terms.link text" %>) +
<% if current_user.consider_pd? %> <%= t ".contributor terms.agreed_with_pd" %> + <% else %> + <%= t ".contributor terms.not_agreed_with_pd" %> + (<%= link_to t(".contributor terms.pd_link_text"), account_pd_declaration_path %>) <% end %> <% else %> <%= t ".contributor terms.not yet agreed" %> - <%= link_to t(".contributor terms.review link text"), :controller => "users", :action => "terms" %> + <%= link_to t(".contributor terms.review link text"), account_terms_path %> <% end %>