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">
<% 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 %>

View file

@ -608,6 +608,10 @@ input[type="submit"] {
padding-bottom: 10px;
}
#accountImage td {
padding-bottom: 0px;
}
.fieldName {
text-align:right;
font-weight:bold;