Sha256: 66058e5c5876953fd4f6fc649e228087566197d324a555b18cb8f206fcde8fac
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
<% @page_title = "All comments" %> <h2>List of Comments</h2> <%= flash_notice %> <div id="comment_table" class="list"> <table> <tbody> <tr class="first"> <th class="first">Picture title</th> <th>Gallery name</th> <th>Author (email)</th> <th>Body</th> <th>IP address</th> <th>View</th> <th>Edit</th> <th class="last">Delete</th> </tr> <% @comments.each do |comment| %> <tr class="<%= cycle('shade','') %>"> <td><%= link_to(h(comment.picture.title), admin_picture_url(comment.picture)) %></td> <td><%= link_to(h(comment.picture.gallery.name), admin_gallery_url(comment.picture.gallery)) %></td> <td><%=h comment.author %> (<%= h comment.email %>)</td> <td><%=truncate(h(comment.body)) %></td> <td><%=h comment.ip %></td> <td class="operation"> <%= link_to image_tag('admin/show.png', :alt => "show", :title => "Show content"), :controller => 'comments', :action => 'show', :id => comment.id %> </td> <td class="operation"><%= link_to image_tag('/images/admin/edit.png', :title => 'Edit gallery', :alt => 'edit'), edit_admin_comment_url(comment) %></td> <td class="operation last"><%= link_to image_tag('admin/delete.png'), {:action => 'destroy', :id => comment.id}, :confirm => "Are you sure?", :method => :delete %></td> </tr> <% end %> </tbody> </table> </div> <%= will_paginate @comments %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | app/views/admin/comments/index.html.erb |