diff options
Diffstat (limited to 'app/views/refinery/blog/admin/comments')
-rw-r--r-- | app/views/refinery/blog/admin/comments/_comment.html.erb | 8 | ||||
-rw-r--r-- | app/views/refinery/blog/admin/comments/index.html.erb | 3 | ||||
-rw-r--r-- | app/views/refinery/blog/admin/comments/show.html.erb | 8 |
3 files changed, 9 insertions, 10 deletions
diff --git a/app/views/refinery/blog/admin/comments/_comment.html.erb b/app/views/refinery/blog/admin/comments/_comment.html.erb index f4a7a16..c007294 100644 --- a/app/views/refinery/blog/admin/comments/_comment.html.erb +++ b/app/views/refinery/blog/admin/comments/_comment.html.erb @@ -5,16 +5,16 @@ </span> <span class='actions'> <%= link_to refinery_icon_tag("application_go.png"), - main_app.refinery_blog_post_path(comment.post, :anchor => "comment-#{comment.to_param}"), + refinery.blog_post_path(comment.post, :anchor => "comment-#{comment.to_param}"), :title => t('.view_live_html'), :target => "_blank" unless comment.unmoderated? %> - <%= link_to refinery_icon_tag('zoom.png'), main_app.refinery_blog_admin_comment_path(comment), + <%= link_to refinery_icon_tag('zoom.png'), refinery.blog_admin_comment_path(comment), :title => t('.read') %> <%= link_to refinery_icon_tag("cross.png"), - main_app.rejected_refinery_blog_admin_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')), + refinery.rejected_blog_admin_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"), - main_app.approved_refinery_blog_admin_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')), + refinery.approved_blog_admin_comment_path(comment, :return_to => request.path.split('/').last.gsub(/^comments$/, 'index')), :title => t('.approve') unless comment.approved? %> </span> </li> diff --git a/app/views/refinery/blog/admin/comments/index.html.erb b/app/views/refinery/blog/admin/comments/index.html.erb index 991980d..dd84e9d 100644 --- a/app/views/refinery/blog/admin/comments/index.html.erb +++ b/app/views/refinery/blog/admin/comments/index.html.erb @@ -23,8 +23,7 @@ <%= will_paginate @comments %> <% else %> <h3> - <%= t('.no_items_yet', - :type => action_name.gsub('index', 'new')).downcase %> + <%= t('.no_items_yet', :type => action_name.gsub('index', 'new').downcase) %> </h3> <% end %> <% end %> diff --git a/app/views/refinery/blog/admin/comments/show.html.erb b/app/views/refinery/blog/admin/comments/show.html.erb index df04b3e..2246c2f 100644 --- a/app/views/refinery/blog/admin/comments/show.html.erb +++ b/app/views/refinery/blog/admin/comments/show.html.erb @@ -6,14 +6,14 @@ <h2><%= t('.actions') %></h2> <ul> <li> - <%= link_to t('.back'), main_app.refinery_blog_admin_comments_path, :class => "back_icon" %> + <%= link_to t('.back'), refinery.blog_admin_comments_path, :class => "back_icon" %> </li> <li> - <%= link_to t('.reject'), main_app.rejected_refinery_blog_admin_comment_path(@comment, :return_to => 'rejected'), + <%= link_to t('.reject'), refinery.rejected_blog_admin_comment_path(@comment, :return_to => 'rejected'), :class => 'comment_cross_icon' unless @comment.rejected? %> </li> <li> - <%= link_to t('.approve'), main_app.approved_refinery_blog_admin_comment_path(@comment, :return_to => 'approved'), + <%= link_to t('.approve'), refinery.approved_blog_admin_comment_path(@comment, :return_to => 'approved'), :class => 'comment_tick_icon' unless @comment.approved? %> </li> </ul> @@ -27,7 +27,7 @@ </td> <td> <%= link_to @comment.post.title, - main_app.refinery_blog_post_path(@comment.post, :anchor => "comment-#{@comment.to_param}"), + refinery.blog_post_path(@comment.post, :anchor => "comment-#{@comment.to_param}"), :target => '_blank' %> </td> </tr> |