X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/68a3df4d53c84508bf443058040379c3a18eb1a7..c819bec8b7b81fb2766a67247440375e4a837d10:/app/views/user/account.html.erb diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 94183ff42..ab74e3780 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -1,7 +1,11 @@ +<% content_for :head do %> + <%= javascript_include_tag "user" %> +<% end %> + <% content_for :heading do %>

<%= t 'user.account.my settings' %>

<% end %> @@ -18,7 +22,7 @@
- + <%= t 'user.account.email never displayed publicly' %>
@@ -43,8 +47,9 @@
- - <%= f.url_field :openid_url, {:id => "openid_url", :class => "openid_url"} %> + + <%= f.select :auth_provider, Auth::PROVIDERS %> + <%= f.text_field :auth_uid %> (<%= t 'user.account.openid.link text' %>)
@@ -53,7 +58,7 @@
- <% if @user.data_public? %> + <% if current_user.data_public? %> <%= t 'user.account.public editing.enabled' %> (<%= t 'user.account.public editing.enabled link text' %>) <% else %> @@ -66,10 +71,10 @@
- <% if @user.terms_agreed? %> + <% if current_user.terms_agreed? %> <%= t 'user.account.contributor terms.agreed' %> (<%= t 'user.account.contributor terms.link text' %>) - <% if @user.consider_pd? %> + <% if current_user.consider_pd? %> <%= t 'user.account.contributor terms.agreed_with_pd' %> <% end %> <% else %> @@ -97,21 +102,21 @@
- <%= user_image @user %> + <%= user_image current_user %>
    - <% if @user.image.file? %> + <% if current_user.image.file? %>
  • - <%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %> + <%= radio_button_tag "image_action", "keep", !current_user.image_use_gravatar %>
  • <% end %> - <% if @user.image.file? || @user.image_use_gravatar? %> + <% if current_user.image.file? || current_user.image_use_gravatar? %>
  • <%= radio_button_tag "image_action", "delete" %>
  • <% end %> - <% if @user.image.file? %> + <% if current_user.image.file? %>
  • <%= radio_button_tag "image_action", "new" %>
  • <% end %>
  • - <%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %> + <%= radio_button_tag "image_action", "gravatar", current_user.image_use_gravatar %>