app/views/spud/admin/posts/index.html.erb in tb_blog-1.0.2 vs app/views/spud/admin/posts/index.html.erb in tb_blog-1.0.3

- old
+ new

@@ -9,11 +9,11 @@ <thead> <tr> <th>Title</th> <th>Author</th> <th>Published At</th> - <th>Comments</th> + <th>Comments Pending</th> <th>&nbsp;</th> </tr> </thead> <tbody> <% @posts.each do |post| %> @@ -27,12 +27,11 @@ <%end%> </td> <td><%= post.author.full_name %></td> <td><%= link_to(post.published_at.strftime('%m/%d/%Y'), blog_post_path(post.url_name)) %></td> <td> - Approved: <%=link_to post.visible_comments.count, spud_admin_post_post_comments_path(:post_id => post.id) %> - <br/> - Spam: <%=link_to post.spam_comments.count, spud_admin_post_post_comments_path(:post_id => post.id) %> + <%= post.pending_comments.length %> + <%= link_to "Manage", spud_admin_post_post_comments_path(:post_id => post.id), :class => 'spud-post-comments-manage' %> </td> <td align="right"> <%= link_to 'Delete', spud_admin_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-danger' %> </td> </tr>