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