Sha256: d7ebfcc6926950e06f8feb24919f2cd29b6f1a29a93cfa7047084761179dc98a
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
<%= link_to 'Add new gallery', new_admin_gallery_gallery_path, :class => 'big button' %> <h1>Galleries</h1> <%= render :partial => 'cms_admin/categories/index', :object => 'SofaGallery::Gallery' if defined?(ComfortableMexicanSofa) %> <br /> <table class='formatted'> <tr> <th> Preview </th> <th> Name </th> <th> URL </th> <th> Embed Code </th> <th> Actions </th> </tr> <% @galleries.each do |gallery| %> <tr> <td class='preview'> <% gallery.photos.limit(1).each do |photo| %> <%= image_tag(photo.image.url(:admin_thumb)) %> <% end %> </td> <td class='main'> <%= link_to gallery.title, admin_gallery_gallery_photos_path(gallery) %> </td> <td> <%= link_to gallery_path(gallery), gallery_path(gallery), :target => '_blank' %> </td> <td class='embed'> {{ cms:helper:render_gallery:<%= gallery.slug %> }} </td> <td class='action_links'> <%= link_to 'Show Photos', admin_gallery_gallery_photos_path(gallery) %> <%= link_to 'Edit', edit_admin_gallery_gallery_path(gallery) %> <%= link_to 'Delete', admin_gallery_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 |
---|---|
comfy_gallery-0.1.0 | app/views/admin/gallery/galleries/index.html.erb |