X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f6c7ed601159aca360da09948f1544172ddf1a41..19b4c1422594ab721e641fe89119758c834e549b:/app/views/user/account.html.erb diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 371524f96..f7408dfe5 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -26,17 +26,17 @@
-
-
-
@@ -89,40 +89,52 @@
<%= user_image @user %> - +
<% if @user.image.file? %> -
+
<%= radio_button_tag "image_action", "keep", !@user.image_use_gravatar %> <%= t 'user.account.keep image' %> -
+ <% end %> <% if @user.image.file? || @user.image_use_gravatar? %> -
+
<%= radio_button_tag "image_action", "delete" %> <%= t 'user.account.delete image' %> -
+ <% end %> <% if @user.image.file? %> -
- <%= 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.replace image' %> +
+
+ <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %> +

<%= t 'user.account.image size hint' %>

+
+
<% else %> -
+
<%= 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' %> -
+ <%= t 'user.account.new image' %> + +
+ <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %> +

<%= t 'user.account.image size hint' %>

+
<% end %> -
+
<%= radio_button_tag "image_action", "gravatar", @user.image_use_gravatar %> - <%= t 'user.account.gravatar.gravatar' %> (<%= t 'user.account.gravatar.link text' %>) -
-
+ <%= t 'user.account.gravatar.gravatar' %> +

(<%= t 'user.account.gravatar.link text' %>)

+
+ -
class="nohome" <%end%> > -

<%= t 'user.account.home location' %>

+
+

<%= t 'user.account.home location' %>

+
class="nohome"<%end%> >

<%= t 'user.account.no home location' %>

@@ -130,22 +142,18 @@ <%= f.text_field :home_lon, :id => "home_lon" %>
-
+ -
- - -

<%= 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" %> - -
+
+

<%= 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') %> -
+ <%= submit_tag t('user.account.save changes button') %> <% end %> <% unless @user.data_public? %>