From: Thomas Levine Date: Tue, 11 Jun 2013 17:27:57 +0000 (-0400) Subject: Make the account image form less ugly X-Git-Tag: live~4876 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3b43cb33cb756c19f8c635a66053a5b99b44eb6c?ds=sidebyside Make the account image form less ugly --- diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index f6d3fa68b..56c32d9e7 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1295,9 +1295,8 @@ ul.results-list li { border-bottom: 1px solid #ccc; } border: 1px solid #ccc; } -.accountImage-options { - width: 50%; - display: inline-block; +.accountImage-options p { + margin-bottom: 0px; } .nohome .location { diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index a4dbf81a3..759502706 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -89,35 +89,46 @@
<%= 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' %>)

+
+