changes
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<h1>Search Comments</h1>
|
||||
<%= simple_form_for(@search) do |f| %>
|
||||
<%= hidden_field_tag "group_by", "comment" %>
|
||||
<%= f.input :body_matches, :label => "Body" %>
|
||||
<%= f.input :creator_name_equals, :label => "User" %>
|
||||
<%= f.input :post_tag_match, :label => "Tags" %>
|
||||
<%= f.input :body_matches, :label => "Body", :required => false %>
|
||||
<%= f.input :creator_name_equals, :label => "User", :required => false %>
|
||||
<%= f.input :post_tag_match, :label => "Tags", :required => false %>
|
||||
|
||||
<%= f.button :submit, "Search" %>
|
||||
<% end %>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<% end %>
|
||||
<%= nav_link_to("Posts", posts_path) %>
|
||||
<%= nav_link_to("Comments", comments_path(:group_by => "post")) %>
|
||||
<%= nav_link_to("Notes", notes_path) %>
|
||||
<%= nav_link_to("Notes", notes_path(:group_by => "post")) %>
|
||||
<%= nav_link_to("Artists", artists_path(:order => "date")) %>
|
||||
<%= nav_link_to("Tags", tags_path(:order => "date")) %>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div id="c-notes">
|
||||
<div id="a-index">
|
||||
<table width="100%">
|
||||
<table width="100%" class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Post</th>
|
||||
@@ -22,6 +22,10 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="paginator">
|
||||
<%= sequential_paginator(@notes) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<div id="c-notes">
|
||||
<div id="a-index">
|
||||
<%= @post_set.presenter.post_previews_html(self) %>
|
||||
|
||||
<div class="paginator">
|
||||
<%= numbered_paginator(@posts, false) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div id="c-notes">
|
||||
<div id="a-search">
|
||||
<%= simple_form_for @search do |f| %>
|
||||
<%= f.input :body_matches, :label => "Body" %>
|
||||
<%= f.input :post_tag_match, :label => "Tags" %>
|
||||
<%= f.button :submit, "Search" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
@@ -5,7 +5,5 @@
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="paginator">
|
||||
<%= numbered_paginator(post_set.posts) do |page| %>
|
||||
<%= link_to(page, posts_path(:page => page, :tags => post_set.tag_string)) %>
|
||||
<% end %>
|
||||
<%= numbered_paginator(post_set.posts) %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user