]> git.openstreetmap.org Git - rails.git/commitdiff
Add a note to the user image upload suggesting an appropriate size.
authorTom Hughes <tom@compton.nu>
Sun, 28 Feb 2010 08:55:01 +0000 (08:55 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 28 Feb 2010 08:55:01 +0000 (08:55 +0000)
app/views/user/account.html.erb
public/stylesheets/common.css

index 92c37056b848235859886518cbe24496b54bede5..7286f552ee8a9a44f62016ec8227fe5793adf0d8 100644 (file)
@@ -55,9 +55,9 @@
     <td valign="top">
       <% if @user.image.nil? %>
         <%= hidden_field_tag "image_action", "new" %>
-        <%= t 'user.account.new image' %><br /><%= file_column_field "user", "image" %>
+        <%= t 'user.account.new image' %> <span class="minorNote"><%= t 'user.account.image size hint' %></span><br /><%= file_column_field "user", "image" %>
       <% else %>
-        <table>
+        <table id="accountImage">
           <tr>
             <td rowspan="3" valign="top"><%= image_tag url_for_file_column(@user, "image"), :class => "user_image" %></td>
             <td><%= radio_button_tag "image_action", "keep", true %></td>
@@ -69,7 +69,7 @@
           </tr>
           <tr>
             <td><%= radio_button_tag "image_action", "new" %></td>
-            <td><%= t 'user.account.replace image' %><br /><%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %></td>
+            <td><%= t 'user.account.replace image' %> <span class="minorNote"><%= t 'user.account.image size hint' %></span><br /><%= file_column_field "user", "image", :onchange => "$('image_action_new').checked = true" %></td>
           </tr>
         </table>
       <% end %>
index 1d56b146470edb8dc72ee5404c18d373b888de19..c7519b2ec4467f6007914e5f103d6ba029bc0414 100644 (file)
@@ -605,7 +605,11 @@ input[type="submit"] {
 }
 
 #accountForm td {
-       padding-bottom:10px;
+  padding-bottom: 10px;
+}
+
+#accountImage td {
+  padding-bottom: 0px;
 }
 
 .fieldName {