html optimization

This commit is contained in:
albert
2013-01-14 12:50:07 -05:00
parent 3c0a05fc79
commit 055ed2aba1
3 changed files with 7 additions and 7 deletions

View File

@@ -571,7 +571,7 @@ class Post < ActiveRecord::Base
count = Cache.get(count_cache_key(tags))
if count.nil?
count = select_value("SELECT post_count FROM tags WHERE name = ?", tags.to_s)
count = select_value_sql("SELECT post_count FROM tags WHERE name = ?", tags.to_s)
end
count

View File

@@ -4,9 +4,9 @@
<p>All users are limited to one appeal a day. For more details, please read the <%= link_to "wiki", wiki_pages_path(:title => "help:deletion_appeals") %>.</p>
<%= simple_form_for(@post_appeal, :remote => true, :format => :js) do |f| %>
<%= form_tag(post_appeals_path(:format => :js), :remote => true) do %>
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
<%= f.text_field :reason, :size => "40x5" %>
<%= text_area :post_appeal, :reason, :size => "40x5" %>
<% end %>
</div>
</div>

View File

@@ -20,10 +20,10 @@
</ul>
<p>Enter a reason:</p>
<%= simple_form_for(@post_flag, :remote => true, :format => :js) do |f| %>
<%= f.input :post_id, :as => :hidden %>
<%= f.text_field :reason %>
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
<%= hidden_field :post_flag, :post_id %>
<%= text_area :post_flag, :reason, :size => "40x5" %>
<% end %>
</div>
</div>