aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/admin/blog/comments/_comment.html.erb
blob: 52a81679063e3d313481608354ca3c73e3ceec95 (plain) (tree)
1
2
3
4
5
6
                                                                                                      




                                                                                   






                                                                                      
                                                                                                                                  

                                                                  
                                                                                                                                  
                                                                   

         
<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" 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? %>
  </span>
</li>