html optimization
This commit is contained in:
@@ -571,7 +571,7 @@ class Post < ActiveRecord::Base
|
|||||||
count = Cache.get(count_cache_key(tags))
|
count = Cache.get(count_cache_key(tags))
|
||||||
|
|
||||||
if count.nil?
|
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
|
end
|
||||||
|
|
||||||
count
|
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>
|
<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 %>
|
<%= 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 %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
|
|
||||||
<p>Enter a reason:</p>
|
<p>Enter a reason:</p>
|
||||||
|
|
||||||
<%= simple_form_for(@post_flag, :remote => true, :format => :js) do |f| %>
|
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
|
||||||
<%= f.input :post_id, :as => :hidden %>
|
<%= hidden_field :post_flag, :post_id %>
|
||||||
<%= f.text_field :reason %>
|
<%= text_area :post_flag, :reason, :size => "40x5" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user