Sha256: e3095527273be0680cc83d15b7d7cc26358f7297a1cce4c0ebcf71a1c95da031
Contents?: true
Size: 1.39 KB
Versions: 7
Compression:
Stored size: 1.39 KB
Contents
<%= content_for :data_controls do %> <% end %> <%=content_for :detail do %> <table class="admin-table"> <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"> <%= link_to 'Approve', approve_spud_admin_post_comment_path(comment), :class => 'btn btn-success btn-small' %> <%= link_to 'Spam', spam_spud_admin_post_comment_path(comment), :class => 'btn btn-warning btn-small' %> <%= link_to 'Delete', spud_admin_post_comment_path(comment), :method => :delete, :confirm => 'Are you sure you want to delete this comment?', :class => 'btn btn-danger btn-small' %> </td> </tr> <%end%> </tbody> </table> <div class="spud_admin_pagination"> <%= will_paginate @post_comments%> </div> <%end%>
Version data entries
7 entries across 7 versions & 2 rubygems