From 6758efb10ff913fb6a5f30a452556da52255e957 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 28 Feb 2010 08:55:01 +0000 Subject: [PATCH 1/1] Add a note to the user image upload suggesting an appropriate size. --- app/views/user/account.html.erb | 6 +++--- public/stylesheets/common.css | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 92c37056b..7286f552e 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -55,9 +55,9 @@ <% if @user.image.nil? %> <%= hidden_field_tag "image_action", "new" %> - <%= t 'user.account.new image' %>
<%= file_column_field "user", "image" %> + <%= t 'user.account.new image' %> <%= t 'user.account.image size hint' %>
<%= file_column_field "user", "image" %> <% else %> - +
@@ -69,7 +69,7 @@ - +
<%= image_tag url_for_file_column(@user, "image"), :class => "user_image" %> <%= radio_button_tag "image_action", "keep", true %>
<%= radio_button_tag "image_action", "new" %><%= t 'user.account.replace image' %>
<%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %>
<%= t 'user.account.replace image' %> <%= t 'user.account.image size hint' %>
<%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %>
<% end %> diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index 1d56b1464..c7519b2ec 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -605,7 +605,11 @@ input[type="submit"] { } #accountForm td { - padding-bottom:10px; + padding-bottom: 10px; +} + +#accountImage td { + padding-bottom: 0px; } .fieldName { -- 2.39.5