Sha256: 20e66712a2e63d322d879f537b1a0f40fb10e67465e3d0142da6c3e570f440d8

Contents?: true

Size: 956 Bytes

Versions: 1

Compression:

Stored size: 956 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>
          <div class='sublabel'><%= photo.slug %></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

1 entries across 1 versions & 1 rubygems

Version Path
comfy_gallery-0.1.0 app/views/admin/gallery/photos/index.html.erb