From 06071e558008477e1b8dbb376d6693af97eeff32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Wed, 27 Jul 2011 17:28:09 +0300 Subject: Wip. --- .../refinery/admin/blog/comments/_comment.html.erb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/views/refinery/admin/blog/comments/_comment.html.erb (limited to 'app/views/refinery/admin/blog/comments/_comment.html.erb') diff --git a/app/views/refinery/admin/blog/comments/_comment.html.erb b/app/views/refinery/admin/blog/comments/_comment.html.erb new file mode 100644 index 0000000..547b9e4 --- /dev/null +++ b/app/views/refinery/admin/blog/comments/_comment.html.erb @@ -0,0 +1,20 @@ +
  • "> + + <%= comment.name %> + - <%= truncate(comment.message, :length => 75) %> + + + <%= link_to refinery_icon_tag("application_go.png"), + blog_post_url(comment.post, :anchor => "comment-#{comment.to_param}"), + :title => t('.view_live_html'), + :target => "_blank" unless comment.unmoderated? %> + <%= 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.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.gsub(/^comments$/, 'index')), + :title => t('.approve') unless comment.approved? %> + +
  • -- cgit v1.2.3