This commit is contained in:
albert
2011-07-02 21:04:29 -04:00
parent e9bab19d51
commit bd3af50e10
16 changed files with 94 additions and 32 deletions

View File

@@ -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 %>

View File

@@ -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? %>

View File

@@ -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>

View File

@@ -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" %>

View File

@@ -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" %>

View File

@@ -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>