diff options
Diffstat (limited to 'app/views/refinery/blog/admin/comments/show.html.erb')
-rw-r--r-- | app/views/refinery/blog/admin/comments/show.html.erb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/refinery/blog/admin/comments/show.html.erb b/app/views/refinery/blog/admin/comments/show.html.erb index 2246c2f..5cd34f9 100644 --- a/app/views/refinery/blog/admin/comments/show.html.erb +++ b/app/views/refinery/blog/admin/comments/show.html.erb @@ -9,12 +9,14 @@ <%= link_to t('.back'), refinery.blog_admin_comments_path, :class => "back_icon" %> </li> <li> - <%= link_to t('.reject'), refinery.rejected_blog_admin_comment_path(@comment, :return_to => 'rejected'), - :class => 'comment_cross_icon' unless @comment.rejected? %> + <%= link_to t('.reject'), refinery.reject_blog_admin_comment_path(@comment), + :method => :post, + :class => 'comment_cross_icon' unless @comment.rejected? %> </li> <li> - <%= link_to t('.approve'), refinery.approved_blog_admin_comment_path(@comment, :return_to => 'approved'), - :class => 'comment_tick_icon' unless @comment.approved? %> + <%= link_to t('.approve'), refinery.approve_blog_admin_comment_path(@comment), + :method => :post, + :class => 'comment_tick_icon' unless @comment.approved? %> </li> </ul> </div> |