Add a note to the user image upload suggesting an appropriate size.

This commit is contained in:
Tom Hughes 2010-02-28 08:55:01 +00:00
parent 6ee7bc57f1
commit 6758efb10f
2 changed files with 8 additions and 4 deletions

View file

@ -55,9 +55,9 @@
<td valign="top"> <td valign="top">
<% if @user.image.nil? %> <% if @user.image.nil? %>
<%= hidden_field_tag "image_action", "new" %> <%= 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 %> <% else %>
<table> <table id="accountImage">
<tr> <tr>
<td rowspan="3" valign="top"><%= image_tag url_for_file_column(@user, "image"), :class => "user_image" %></td> <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> <td><%= radio_button_tag "image_action", "keep", true %></td>
@ -69,7 +69,7 @@
</tr> </tr>
<tr> <tr>
<td><%= radio_button_tag "image_action", "new" %></td> <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> </tr>
</table> </table>
<% end %> <% end %>

View file

@ -605,7 +605,11 @@ input[type="submit"] {
} }
#accountForm td { #accountForm td {
padding-bottom:10px; padding-bottom: 10px;
}
#accountImage td {
padding-bottom: 0px;
} }
.fieldName { .fieldName {