Sha256: 1f4ea24ce8f1c3aab9d1dde1666c5e8e9900fd206ca712600a2ccd0765c50962

Contents?: true

Size: 827 Bytes

Versions: 4

Compression:

Stored size: 827 Bytes

Contents

<form action="<%= request.fullpath %>" method="POST">
  <div class="source">
    <div class="header">Galleries</div>
    <% @galleries.each_with_index do |gallery, index| -%>
    <a<%= raw ' class="active"' if index.zero? %> href="<%= admin_gallery_path(gallery) %>" rel="gallery-<%= gallery.to_param %>">
      <span class="icon" style="background-image:url(<%= gallery.cover_image.file.url(:admin_icon) %>);"><%= gallery.name %></span>
    </a>
    <% end -%>
  </div>
  <div class="destination">
    <div class="scrollable">
      <% @galleries.each_with_index do |gallery, index| -%>
      <div id="gallery-<%= gallery.to_param %>"<%= raw ' style="display:none;"' unless index.zero? %>>
        <%= render :partial => 'gallery', :locals => {:gallery => gallery} %>
      </div>
      <% end -%>
    </div>
  </div>
</form>

Version data entries

4 entries across 4 versions & 1 rubygems

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