X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c7e9888bb6587649109d0c8d9e00c771da867cf9..835756e979916341965fd3328146baa65a13e82d:/app/views/accounts/edit.html.erb diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index 2fae4640a..16f109c9f 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -19,15 +19,19 @@
- <%= 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" %>) + (" target="_new"><%= t ".openid.link text" %>)
- + <% if current_user.data_public? %> <%= t ".public editing.enabled" %> (" target="_new"><%= t ".public editing.enabled link text" %>) @@ -40,7 +44,7 @@
- + <% if current_user.terms_agreed? %> <%= t ".contributor terms.agreed" %> (" target="_new"><%= t ".contributor terms.link text" %>) @@ -49,34 +53,21 @@ <% 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 %>
-
-
+
+
<%= f.primary t(".save changes button") %>
-
+
<%= link_to t(".delete_account"), account_deletion_path, :class => "btn btn-outline-danger" %>
<% end %> <% unless current_user.data_public? %> -
- -

<%= t ".public editing note.heading" %>

-

- <%= t ".public editing note.currently_not_public" %> - <%= t ".public editing note.only_public_can_edit" %> - <%= t ".public editing note.find_out_why_html", :link => link_to(t(".public editing note.find_out_why"), - t(".public editing note.find_out_why_url")) %> -

-
    -
  • <%= t ".public editing note.email_not_revealed" %>
  • -
  • <%= t ".public editing note.not_reversible" %>
  • -
- <%= button_to t(".make edits public button"), user_go_public_path, :class => "btn btn-primary" %> + <%= render :partial => "go_public" %> <% end %>