Sha256: f67ade58c3b34d90a1fb2e5cd774258d24b6086098bbfc6a6d40c84d3b2fbda1
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
<%= link_to 'Add new gallery', new_gallery_admin_gallery_path, :class => 'big button' %> <h1>Galleries</h1> <table class='formatted'> <% @galleries.each do |gallery| %> <tr> <td> <div class='title'> <%= link_to gallery.title, gallery_admin_gallery_photos_path(gallery) %> </div> <div class='sublabel'> <%= gallery.slug %> </div> </td> <td class='main'> <% gallery.photos.limit(5).each do |photo| %> <%= image_tag(photo.image.url(:admin_thumb)) %> <% end %> </td> <td class='action_links'> <%= link_to 'Show Photos', gallery_admin_gallery_photos_path(gallery) %> <%= link_to 'Edit', edit_gallery_admin_gallery_path(gallery) %> <%= link_to 'Delete', gallery_admin_gallery_path(gallery), :method => :delete, :confirm => 'Are you sure?' %> </td> </tr> <% end %> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sofa_gallery-0.0.0 | app/views/gallery_admin/galleries/index.html.erb |