diff options
author | Philip Arndt <parndt@gmail.com> | 2010-09-02 17:49:11 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-09-02 17:49:11 +1200 |
commit | 5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2 (patch) | |
tree | e0437a22051a2128ac0e9dcf08b3a2d16c73b4e0 /app/views/admin/blog/comments/_comment.html.erb | |
parent | 4d1e364085c0de27d3ca58cc90eba9036744fc79 (diff) | |
download | refinerycms-blog-5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2.tar.gz refinerycms-blog-5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2.tar.bz2 refinerycms-blog-5c71c0aaa5c96683b56d2d8af0dfdac8424e41d2.zip |
Comment moderation now working in the backend. Of course it still happens automatically if the blog isn't moderated based on whether it's spam or not.
Diffstat (limited to 'app/views/admin/blog/comments/_comment.html.erb')
-rw-r--r-- | app/views/admin/blog/comments/_comment.html.erb | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/app/views/admin/blog/comments/_comment.html.erb b/app/views/admin/blog/comments/_comment.html.erb index e03605a..3435c75 100644 --- a/app/views/admin/blog/comments/_comment.html.erb +++ b/app/views/admin/blog/comments/_comment.html.erb @@ -1,17 +1,20 @@ -<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(comment) -%>"> +<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= "comment-#{comment.to_param}" -%>"> <span class='title'> <%=h comment.name %> <span class="preview"> - <%= truncate(comment.message, :length => 75) %></span> </span> <span class='actions'> - <%= link_to refinery_icon_tag("application_go.png"), blog_post_url(comment.post, - :anchor => "comment-#{comment.to_param}"), - :title => t('.view_live'), - :target => "_blank" %> - <%= link_to refinery_icon_tag("application_edit.png"), edit_admin_blog_comment_path(comment), - :title => t('.edit') %> - <%= link_to refinery_icon_tag("delete.png"), admin_blog_comment_path(comment), - :class => "cancel confirm-delete", - :title => t('.delete') %> + <%= link_to refinery_icon_tag("application_go.png"), + blog_post_url(comment.post, :anchor => "comment-#{comment.to_param}"), + :title => t('.view_live'), + :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), + :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), + :title => t('.approve') unless comment.approved? %> </span> </li> |