Sha256: 1e1ca6eb0a72e4cdce43da39ecfc3d2b87aa2af399e98ef3e51ffbc21f6d6f3e
Contents?: true
Size: 1.5 KB
Versions: 3
Compression:
Stored size: 1.5 KB
Contents
<%= content_for :data_controls do %> <% end %> <%=content_for :detail do %> <table class="admin-table table table-responsive"> <thead> <tr> <th>Author</th> <th>Comment</th> <th>Attached To</th> <th>Status</th> <th> </th> </tr> </thead> <tbody> <% @post_comments.each do |comment| %> <tr> <td><%= comment.author %></td> <td> <span class='submitted-on'>Submitted: <%=timestamp(comment.created_at)%></span> <%= comment.content %> </td> <td><%= link_to comment.post.title, blog_post_path(comment.post.url_name)%></td> <td> <% if comment.spam %> Spam <% else %> Approved <% end %> </td> <td align="right" style="min-width:200px;"> <%= link_to 'Approve', approve_spud_admin_post_comment_path(comment), :class => 'btn btn-success btn-sm' %> <%= link_to 'Spam', spam_spud_admin_post_comment_path(comment), :class => 'btn btn-warning btn-sm' %> <%= link_to spud_admin_post_comment_path(comment), :method => :delete, :confirm => 'Are you sure you want to delete this comment?', :class => 'btn btn-danger btn-sm' do%> <span class="glyphicon glyphicon-trash"></span> <%end%> </td> </tr> <%end%> </tbody> </table> <div class="spud_admin_pagination"> <%= will_paginate @post_comments%> </div> <%end%>
Version data entries
3 entries across 3 versions & 1 rubygems