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>&nbsp;</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

Version Path
spud_blog-1.0.0.rc1.1 app/views/spud/admin/post_comments/index.html.erb
spud_blog-1.0.0.rc1 app/views/spud/admin/post_comments/index.html.erb
spud_blog-0.9.11 app/views/spud/admin/post_comments/index.html.erb
tb_blog-1.0.2 app/views/spud/admin/post_comments/index.html.erb
tb_blog-1.0.1 app/views/spud/admin/post_comments/index.html.erb
tb_blog-1.0 app/views/spud/admin/post_comments/index.html.erb
spud_blog-0.9.10 app/views/spud/admin/post_comments/index.html.erb