html optimization
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user