Sha256: bd2d081cc79be1b34a54491cfccafaa47d58214fd50b1402990a9539ef9b2b61

Contents?: true

Size: 976 Bytes

Versions: 4

Compression:

Stored size: 976 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) if photo.force_aspect? %>
          <%= 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

4 entries across 4 versions & 1 rubygems

Version Path
sofa_gallery-0.0.6 app/views/sofa_gallery/admin/photos/index.html.erb
sofa_gallery-0.0.5 app/views/sofa_gallery/admin/photos/index.html.erb
sofa_gallery-0.0.4 app/views/sofa_gallery/admin/photos/index.html.erb
sofa_gallery-0.0.3 app/views/sofa_gallery/admin/photos/index.html.erb