aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/comments
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-09-03 23:32:07 +1200
committerPhilip Arndt <parndt@gmail.com>2010-09-03 23:32:07 +1200
commita2f655b55eb30a900020e8aff9601ed0606ce58f (patch)
treed57cf7aef6ae36a4751144587fab7fe2e508d491 /app/views/admin/blog/comments
parentc4222bfdf5733d1552a2ecf4468d89cf89a583b1 (diff)
downloadrefinerycms-blog-a2f655b55eb30a900020e8aff9601ed0606ce58f.tar.gz
refinerycms-blog-a2f655b55eb30a900020e8aff9601ed0606ce58f.tar.bz2
refinerycms-blog-a2f655b55eb30a900020e8aff9601ed0606ce58f.zip
Hello rails3 support.
Diffstat (limited to 'app/views/admin/blog/comments')
-rw-r--r--app/views/admin/blog/comments/_comment.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/blog/comments/_comment.html.erb b/app/views/admin/blog/comments/_comment.html.erb
index 3435c75..52a8167 100644
--- a/app/views/admin/blog/comments/_comment.html.erb
+++ b/app/views/admin/blog/comments/_comment.html.erb
@@ -11,10 +11,10 @@
<%= link_to refinery_icon_tag('zoom.png'), admin_blog_comment_path(comment),
:title => t('.read') %>
<%= link_to refinery_icon_tag("cross.png"),
- rejected_admin_blog_comment_path(comment, :return_to => request.path.split('/').last),
+ rejected_admin_blog_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')),
:title => t('.reject') unless comment.rejected? %>
<%= link_to refinery_icon_tag("tick.png"),
- approved_admin_blog_comment_path(comment, :return_to => request.path.split('/').last),
+ approved_admin_blog_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')),
:title => t('.approve') unless comment.approved? %>
</span>
</li>