This commit is contained in:
albert
2011-11-11 18:32:43 -05:00
parent 995476b52a
commit dd3996fd64
4 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ form.simple_form {
span.hint {
color: #666;
font-style: italic;
display: block;
margin-left: 1em;
}
fieldset {

View File

@@ -15,7 +15,7 @@ class PostPresenter < Presenter
html << %{<a href="#{path}/#{post.id}">}
if post.is_image?
html << %{<img src="#{post.preview_file_url}">}
html << %{<img src="#{post.preview_file_url}" alt="#{h(post.tag_string)}">}
elsif post.is_flash?
html << '<div class="text-post-preview">Flash</div>'
else

View File

@@ -4,7 +4,7 @@
<%= simple_form_for @user do |f| %>
<fieldset>
<%= f.input :email, :required => Danbooru.config.enable_email_verification?, :hint => "Your email address (used for messages and for password resets)" %>
<%= f.input :email, :required => Danbooru.config.enable_email_verification?, :hint => "Your email address (used for messages and for password resets)", :as => :email %>
<%= f.input :time_zone, :hint => "Your local time zone" %>
<%= f.input :receive_email_notifications, :hint => "Enable to receive email notification when you receive a DMail" %>
<%= f.input :comment_threshold, :hint => "Comments below this score will be hidden by default" %>

View File

@@ -65,10 +65,10 @@
<div id="p3">
<%= simple_form_for(@user) do |f| %>
<%= f.input :name %>
<%= f.input :name, :as => :string %>
<%= f.input :password %>
<%= f.input :password_confirmation %>
<%= f.input :email, :required => false %>
<%= f.input :email, :required => false, :as => :email %>
<%= f.input :level, :collection => User.level_hash.to_a, :include_blank => false %>
<%= f.button :submit %>
<% end %>