aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/admin/comments/_comment.html.erb
blob: fe72030c1d90f942ba838cfde99148a23c19d4fe (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                                      
                      
                       


                                                                                   
                                                        
                                                                                                
                                               
                                                                  
                                                                                         
                                       
                                               

                                                                 
                                                                  
                                              

                                                                  
                                                                   

         
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= "comment-#{comment.to_param}" -%>">
  <span class='title'>
    <%= comment.name %>
    <span class="preview"> - <%= truncate(comment.message, :length => 75) %></span>
  </span>
  <span class='actions'>
    <%= link_to refinery_icon_tag("application_go.png"),
                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'), refinery.blog_admin_comment_path(comment),
                :title => t('.read') %>
    <%= link_to refinery_icon_tag("cross.png"),
                refinery.reject_blog_admin_comment_path(comment),
                :method => :post,
                :title => t('.reject') unless comment.rejected? %>
    <%= link_to refinery_icon_tag("tick.png"),
                refinery.approve_blog_admin_comment_path(comment),
                :method => :post,
                :title => t('.approve') unless comment.approved? %>
  </span>
</li>