comments: don't nest search form under div.list-of-comments.
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
<div id="p-index-by-comment" class="comments-for-post">
|
|
||||||
<div class="list-of-comments list-of-messages">
|
|
||||||
<%= search_form_for(comments_path) do |f| %>
|
<%= search_form_for(comments_path) do |f| %>
|
||||||
<%= hidden_field_tag "group_by", "comment", :id => "group_by_full" %>
|
<%= hidden_field_tag "group_by", "comment", :id => "group_by_full" %>
|
||||||
<%= f.input :creator_name, label: "Commenter", input_html: { value: params[:search][:creator_name], "data-autocomplete": "user" } %>
|
<%= f.input :creator_name, label: "Commenter", input_html: { value: params[:search][:creator_name], "data-autocomplete": "user" } %>
|
||||||
@@ -14,6 +12,10 @@
|
|||||||
<%= f.submit "Search" %>
|
<%= f.submit "Search" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<%= render "posts/partials/common/inline_blacklist" %>
|
||||||
|
|
||||||
|
<div id="p-index-by-comment" class="comments-for-post">
|
||||||
|
<div class="list-of-comments list-of-messages">
|
||||||
<% dtext_data = DText.preprocess(@comments.map(&:body)) %>
|
<% dtext_data = DText.preprocess(@comments.map(&:body)) %>
|
||||||
|
|
||||||
<% @comments.each do |comment| %>
|
<% @comments.each do |comment| %>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
<%= render "posts/partials/common/inline_blacklist" %>
|
||||||
|
|
||||||
<div id="p-index-by-post">
|
<div id="p-index-by-post">
|
||||||
<% if @posts.blank? %>
|
<% if @posts.blank? %>
|
||||||
<%= render "post_sets/blank" %>
|
<%= render "post_sets/blank" %>
|
||||||
|
|||||||
@@ -7,8 +7,6 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Comments</h1>
|
<h1>Comments</h1>
|
||||||
|
|
||||||
<%= render "posts/partials/common/inline_blacklist" %>
|
|
||||||
|
|
||||||
<% if params[:group_by] == "comment" %>
|
<% if params[:group_by] == "comment" %>
|
||||||
<%= render "index_by_comment" %>
|
<%= render "index_by_comment" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|||||||
Reference in New Issue
Block a user