Sha256: b77e7ae1239773f7e85bddcac5d67aa996820d27fd454515f2ee769bb42c8318

Contents?: true

Size: 689 Bytes

Versions: 3

Compression:

Stored size: 689 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 => 22) %>
    </div>
    <div class="float-right">
      <%= link_to '', edit_grandstand_gallery_image_path(gallery, image), :class => 'edit icon remote' %><%= link_to '', delete_grandstand_gallery_image_path(gallery, image), :class => 'delete icon remote' %>
    </div>
  </div>
  <% end -%>
  <%= image_tag(image.file.url(:grandstand_medium), :alt => image.caption, :height => 200, :width => 200) %>
</div>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grandstand-0.3.0 app/views/grandstand/galleries/_gallery.html.erb
grandstand-0.2.7 app/views/grandstand/galleries/_gallery.html.erb
grandstand-0.2.6 app/views/grandstand/galleries/_gallery.html.erb