Sha256: 105eb4cf83216da38bbffded80272d26653e30012243c4a7a3cd33b9bad63e92
Contents?: true
Size: 953 Bytes
Versions: 2
Compression:
Stored size: 953 Bytes
Contents
<%= link_to 'Add new photo', new_sofa_gallery_admin_gallery_photo_path(@gallery), :class => 'big button' %> <h1>Photos in <%=@gallery.title%></h1> <table class='formatted'> <tbody class='sortable'> <% @photos.each do |photo| %> <tr id='<%= dom_id(photo) %>'> <td> <%= image_tag(photo.image.url(:admin_thumb), :class => 'thumb dragger') %> </td> <td class='main'> <div class='title'><%= photo.title %></div> <div class='sublabel'><%= photo.slug %></div> </td> <td class='action_links'> <%= link_to 'Crop', crop_sofa_gallery_admin_gallery_photo_path(@gallery, photo) %> <%= link_to 'Edit', edit_sofa_gallery_admin_gallery_photo_path(@gallery, photo) %> <%= link_to 'Delete', sofa_gallery_admin_gallery_photo_path(@gallery, photo), :method => :delete, :confirm => 'Are you sure?' %> </td> </tr> <% end %> </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sofa_gallery-0.0.2 | app/views/sofa_gallery/admin/photos/index.html.erb |
sofa_gallery-0.0.1 | app/views/sofa_gallery/admin/photos/index.html.erb |