X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/561f2f694adc8ac57011eac1eec5929425276c59..80f48e812f94e2d430f83b96183f93df729572d8:/app/views/user/account.html.erb diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 488966491..2782fc808 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -1,4 +1,11 @@ -

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

+<% content_for :heading do %> +

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

+ +<% end %> + <%= error_messages_for 'user' %> <%= form_for :user, :html => { :multipart => true } do |f| %> @@ -80,27 +87,37 @@ - @@ -113,10 +130,13 @@ - + @@ -124,16 +144,9 @@
<%= t 'user.account.image' %> - <% if @user.image.file? %> - - - - - - - - - - - - - - -
<%= user_image @user %><%= radio_button_tag "image_action", "keep", true %><%= t 'user.account.keep image' %>
<%= radio_button_tag "image_action", "delete" %><%= t 'user.account.delete image' %>
<%= radio_button_tag "image_action", "new" %><%= t 'user.account.replace image' %>
<%= f.file_field :image, :onchange => "$('image_action_new').prop('checked', true)" %>
<%= t 'user.account.image size hint' %>
- <% else %> - <%= hidden_field_tag "image_action", "new" %> - <%= t 'user.account.new image' %>
<%= f.file_field :image %>
<%= t 'user.account.image size hint' %> - <% end %> +
+ <%= user_image @user %> + + <% if @user.image.file? %> + + + + + <% end %> + <% if @user.image.file? || @user.image_use_gravatar? %> + + + + + <% end %> + <% if @user.image.file? %> + + + + + <% else %> + + + + + <% end %> + + + + +
<%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %><%= t 'user.account.keep image' %>
<%= radio_button_tag "image_action", "delete" %><%= t 'user.account.delete image' %>
<%= radio_button_tag "image_action", "new" %><%= t 'user.account.replace image' %>
<%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
<%= t 'user.account.image size hint' %>
<%= radio_button_tag "image_action", "new" %><%= t 'user.account.new image' %>
<%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %>
<%= t 'user.account.image size hint' %>
<%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %><%= t 'user.account.gravatar.gravatar' %> (<%= t 'user.account.gravatar.link text' %>)

<%= t 'user.account.update home location on click' %> checked="checked" <% end %> id="updatehome" />

-
+ <% content_for :head do %> + <%= javascript_include_tag "user" %> + <% end %> + <%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
<%= submit_tag t('user.account.save changes button') %>
<% end %> -<%= render :partial => 'map', :locals => { :setting_location => true, :show_other_users => false } %> - <% unless @user.data_public? %>

<%= t 'user.account.public editing note.heading' %>

<%= raw t 'user.account.public editing note.text' %> <%= button_to t('user.account.make edits public button'), :action => :go_public %> -<% end %> -
-
-<%= link_to t('user.account.return to profile'), :controller => 'user', :action => 'view', :display_name => @user.display_name %> -
-
+<% end %> \ No newline at end of file