X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ad434992058ed270b3380d882b91c7f2a91434be..6f793e1b21a534b0331a5874613c4f3c05853a45:/app/views/user/account.html.erb
diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb
index 7adea7c2c..179e1b2f6 100644
--- a/app/views/user/account.html.erb
+++ b/app/views/user/account.html.erb
@@ -84,27 +84,30 @@
<%= t 'user.account.image' %>
|
-
-
+
+ <%= user_image @user %>
+
<% if @user.image.file? %>
- <%= user_image @user %> |
<%= 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' %> |
+ <%= t 'user.account.replace image' %> <%= f.file_field :image, :onchange => "$('#image_action_new').prop('checked', true)" %> <%= t 'user.account.image size hint' %> |
<% else %>
- <%= user_image @user %> |
- <%= radio_button_tag "image_action", "new", !@user.image_use_gravatar %> |
- <%= t 'user.account.new image' %> <%= f.file_field :image %> <%= 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' %> |
<% end %>
| |