Sha256: 07927c7ac54e32211d66679c22403e1ce304e77322047b959a768bc6b6645c08

Contents?: true

Size: 900 Bytes

Versions: 3

Compression:

Stored size: 900 Bytes

Contents

<%= link_to 'Add new photo', new_admin_gallery_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>
        </td>
        <td class='action_links'>
          <%= link_to 'Crop', crop_admin_gallery_gallery_photo_path(@gallery, photo) if photo.force_aspect? %>
          <%= link_to 'Edit', edit_admin_gallery_gallery_photo_path(@gallery, photo) %>
          <%= link_to 'Delete', admin_gallery_gallery_photo_path(@gallery, photo), :method => :delete, :confirm => 'Are you sure?' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_gallery-0.1.3 app/views/admin/gallery/photos/index.html.erb
comfy_gallery-0.1.2 app/views/admin/gallery/photos/index.html.erb
comfy_gallery-0.1.1 app/views/admin/gallery/photos/index.html.erb