Sha256: 0ee3348d11f0792690a01c9e38df0cd3fec588ded326a2836a5e2d59d8cc7462

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

<% if @galleries.empty? -%>
<h2 class="error icon">Please Upload Images to a Gallery</h2>
<div class="center field">
  <img alt="No Galleries" src="/grandstand/images/galleries-empty.png" />
</div>
<div class="toolbar">
  <%= button_link_to('Add a Gallery', new_grandstand_gallery_path, :class => 'remote', :icon => 'add') %>
  <%= button_link_to('Close', return_path, :class => 'cancel')%>
</div>
<% else -%>
<form action="<%= request.fullpath %>" class="two-pane" 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="<%= grandstand_gallery_path(gallery) %>" rel="gallery-<%= gallery.to_param %>">
      <span class="icon" style="background-image:url(<%= gallery.cover_image.file.url(:grandstand_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>
  <div class="toolbar">
    <%= button_link_to('Close', return_path, :class => 'cancel') %>
  </div>
</form>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

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