* Removed unapprovals, added post flags and post appeals (still need to update tests)

* Restyled text
This commit is contained in:
albert
2011-03-28 18:48:02 -04:00
parent 42627be1d3
commit f9c961cdc6
66 changed files with 642 additions and 403 deletions

View File

@@ -1,6 +1,7 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= link_to "Listing", comments_path(:group_by => "post") %></li>
<li><%= link_to "Search", search_comments_path %></li>
<li><%= link_to "Help", wiki_pages_path(:title => "help:comments") %></li>
</menu>
<% end %>

View File

@@ -1,9 +1,13 @@
<div id="c-comments">
<div id="a-index">
<% @comments.each do |comment| %>
<%= render :partial => "comments/partials/index/list", :locals => {:post => comment.post, :comments => [comment], :show_header => false} %>
<% end %>
<div class="comments-for-post">
<div class="list-of-comments">
<% @comments.each do |comment| %>
<%= render :partial => "comments/partials/show/comment", :locals => {:post => comment.post, :comment => comment, :show_header => false} %>
<% end %>
</div>
</div>
</div>
</div>
<%= render "comments/secondary_links" %>
<%= render "comments/secondary_links" %>

View File

@@ -1,6 +1,6 @@
<article data-comment-id="<%= comment.id %>">
<div class="author">
<h1><%= link_to comment.creator_name, user_path(comment.creator_id) %></h1>
<h4><%= link_to comment.creator_name, user_path(comment.creator_id) %></h4>
<p>
<%= time_ago_in_words(comment.created_at) %> ago
</p>

View File

@@ -0,0 +1,13 @@
<div id="c-comments">
<div id="a-search">
<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.button :submit, "Search" %>
<% end %>
</div>
</div>