<% @page_title = "All comments" %>

List of Comments

<%= flash_notice %>
<% @comments.each do |comment| %> <% end %>
Picture title Gallery name Author (email) Body IP address View Edit Delete
<%= link_to(h(comment.picture.title), admin_picture_url(comment.picture)) %> <%= link_to(h(comment.picture.gallery.name), admin_gallery_url(comment.picture.gallery)) %> <%=h comment.author %> (<%= h comment.email %>) <%=truncate(h(comment.body)) %> <%=h comment.ip %> <%= link_to image_tag('admin/show.png', :alt => "show", :title => "Show content"), :controller => 'comments', :action => 'show', :id => comment.id %> <%= link_to image_tag('/images/admin/edit.png', :title => 'Edit gallery', :alt => 'edit'), edit_admin_comment_url(comment) %> <%= link_to image_tag('admin/delete.png'), {:action => 'destroy', :id => comment.id}, :confirm => "Are you sure?", :method => :delete %>
<%= will_paginate @comments %>