Sha256: edab0555b9a9b95cc04383230a229b0a4b41a58f0d3d59abdbe724872948446f

Contents?: true

Size: 1.09 KB

Versions: 18

Compression:

Stored size: 1.09 KB

Contents

<h1>Listing comments</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" %>
    </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>
      <%= sortable_table_header :name => "Name",  :sort => "name" %>
      <%= sortable_table_header :name => "Comment",  :sort => "comment" %>
    </tr>
  </tfoot>
</table>

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
beef-articles-0.1.0 app/views/admin/comments/index.html.erb
beef-articles-0.2.0 app/views/admin/comments/index.html.erb
beef-articles-0.2.1 app/views/admin/comments/index.html.erb
beef-articles-0.2.2 app/views/admin/comments/index.html.erb
beef-articles-0.3.0 app/views/admin/comments/index.html.erb
beef-articles-0.3.1 app/views/admin/comments/index.html.erb
beef-articles-0.3.10 app/views/admin/comments/index.html.erb
beef-articles-0.3.11 app/views/admin/comments/index.html.erb
beef-articles-0.3.12 app/views/admin/comments/index.html.erb
beef-articles-0.3.13 app/views/admin/comments/index.html.erb
beef-articles-0.3.2 app/views/admin/comments/index.html.erb
beef-articles-0.3.3 app/views/admin/comments/index.html.erb
beef-articles-0.3.4 app/views/admin/comments/index.html.erb
beef-articles-0.3.5 app/views/admin/comments/index.html.erb
beef-articles-0.3.6 app/views/admin/comments/index.html.erb
beef-articles-0.3.7 app/views/admin/comments/index.html.erb
beef-articles-0.3.8 app/views/admin/comments/index.html.erb
beef-articles-0.3.9 app/views/admin/comments/index.html.erb