Sha256: 97cf50a55cf321310fd80c08bb2d8e18b33ec17519c5da3d721e549f8e6d9292
Contents?: true
Size: 1.84 KB
Versions: 11
Compression:
Stored size: 1.84 KB
Contents
<div class="panel panel-default"> <div class="panel-heading"> <h4><span class="fa fa-comments"></span> <%= t('admin.comments.comments_list_post')%></h4> </div> <div class="panel-body"> <table class="table"> <thead> <tr> <th><%= t('admin.table.id')%></th> <th><%= t('admin.table.post')%></th> <th><%= t('admin.table.post_type')%></th> <th><%= t('admin.table.comments')%></th> <th><%= t('admin.table.actions')%></th> </tr> </thead> <tbody> <% @posts.to_a.uniq.each do |f| %> <% post = f.decorate post_type = f.post_type.decorate %> <tr> <td><%= f.id %></td> <td><a href="<%= post.the_url %>" target="_blank"><%= post.the_title %></a></td> <td><a href="<%= post_type.the_url %>" target="_blank"><%= post_type.the_title %></a></td> <td><%= f.comments.main.size %></td> <td> <%= link_to raw('<i class="fa fa-comments"></i>'), {action: :responses, post_id: f.id }, class: "btn btn-default btn-xs", title: "#{t('admin.table.comments')}" %> <%= link_to raw('<i class="fa fa-times"></i>'), { action: :destroy_comments, post_id: f.id }, method: :delete, data: { confirm: t('admin.message.delete') }, class: "btn btn-danger btn-xs", title: "Delete" %> </td> </tr> <% end %> </tbody> </table> <%= content_tag("div", raw(t('admin.message.data_found_list')), class: "alert alert-warning") if @posts.empty? %> <%= raw do_pagination(@posts) %> </div> </div>
Version data entries
11 entries across 11 versions & 1 rubygems