Sha256: b2f5bb29e808f0c32e7f14f22164fa497ba8902ac820c2d3f8566189a350415c

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

<% editable ||= false -%>
<% gallery.images.each do |image| -%>
<div class="inset image container" id="images_<%= image.id %>">
  <% if editable -%>
  <div class="header">
    <div class="float-left image icon">
      <%= truncate(image.file.original_filename, :length => 23) %>
    </div>
    <div class="float-right">
      <%= link_to '', edit_admin_gallery_image_path(gallery, image), :class => 'edit icon remote' %><%= link_to '', delete_admin_gallery_image_path(gallery, image), :class => 'delete icon remote' %>
    </div>
  </div>
  <% end -%>
  <%= image_tag(image.file.url(:admin_medium), :alt => image.caption) %>
</div>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grandstand-0.2.4 app/views/admin/galleries/_gallery.html.erb
grandstand-0.2.3 app/views/admin/galleries/_gallery.html.erb
grandstand-0.2.2 app/views/admin/galleries/_gallery.html.erb
grandstand-0.2.1 app/views/admin/galleries/_gallery.html.erb