Sha256: 9172552faff5145f1747a29194fff9f26e225be234bd83131879da659cff4b24

Contents?: true

Size: 1.33 KB

Versions: 13

Compression:

Stored size: 1.33 KB

Contents

<h1>Listing comments<%= " for \"#{@commentable.title}\"" if @commentable -%></h1>

<table>
  <thead>
    <tr>
<% if @commentable.nil? -%>
      <th>Article</th>
<% end -%>
      <%= sortable_table_header :name => "Name",  :sort => "name" %>
      <%= sortable_table_header :name => "Comment",  :sort => "comment" %>
      <%= sortable_table_header :name => "Created",  :sort => "created_at" %>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
<% @comments.each do |comment| %>
    <tr id="comment-<%= comment.id %>">
<% if @commentable.nil? -%>
      <td class="title"><%= link_to comment.commentable.title, [:admin, comment.commentable] %></td>
<% end -%>
      <td><%= mail_to comment.email, comment.name %></td>
      <td><%=h comment.comment %></td>
      <td class="date"><%= comment.created_at.to_formatted_s(:short) %></td>
      <td><%= link_to 'Destroy', admin_comment_path(comment), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
    </tr>
<% end %>
  </tbody>
  <tfoot>
    <tr>
<% if @commentable.nil? -%>
      <th>Article</th>
<% end -%>
      <%= sortable_table_header :name => "Name",  :sort => "name" %>
      <%= sortable_table_header :name => "Comment",  :sort => "comment" %>
      <%= sortable_table_header :name => "Created",  :sort => "created_at" %>
      <th>Actions</th>
    </tr>
  </tfoot>
</table>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
beef-articles-0.3.15 app/views/admin/comments/index.html.erb
beef-articles-0.3.16 app/views/admin/comments/index.html.erb
beef-articles-0.3.18 app/views/admin/comments/index.html.erb
beef-articles-0.3.21 app/views/admin/comments/index.html.erb
beef-articles-0.3.25 app/views/admin/comments/index.html.erb
beef-articles-0.3.27 app/views/admin/comments/index.html.erb
beef-articles-0.3.28 app/views/admin/comments/index.html.erb
beef-articles-0.3.29 app/views/admin/comments/index.html.erb
beef-articles-0.3.30 app/views/admin/comments/index.html.erb
beef-articles-0.3.32 app/views/admin/comments/index.html.erb
beef-articles-0.3.33 app/views/admin/comments/index.html.erb
beef-articles-0.3.34 app/views/admin/comments/index.html.erb
beef-articles-0.3.35 app/views/admin/comments/index.html.erb