Report abuse


			
Index: app/views/admin/overview/_comment_event.rhtml
===================================================================
--- app/views/admin/overview/_comment_event.rhtml       (revision 188)
+++ app/views/admin/overview/_comment_event.rhtml       (working copy)
@@ -1,5 +1,6 @@
 <% with_options :controller => 'articles', :id => event.article_id do |article| -%>
 
  • "> +
    <%= link_to event.article.title, :controller => 'articles', :action => 'comments', :id => event.article_id, :anchor => "comment-#{event.comment_id}" %> received a comment. <%= event_time_for event, later %> @@ -9,6 +10,15 @@ — <%=h event.author %> - + + <% if event.comment %> + <% if event.comment.approved? -%> + <%= link_to_remote 'Unapprove', :url => { :controller => 'admin/articles', :action => 'unapprove', :id => event.article_id, :comment => event.comment_id } %> | + <% else -%> + <%= link_to_remote 'Approve', :url => { :controller => 'admin/articles', :action => 'approve', :id => @article, :comment => event.comment_id } %> | + <% end -%> + <%= link_to_remote 'Delete', :url => { :controller => 'admin/articles', :action => 'destroy_comment', :id => @article, :comment => event.comment_id } %> + <% end %> +
  • <% end -%>