Sha256: a5b417352ae116041cd0451263a61397d8d7e07957272f17a1268506cb2203c4
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
<% if @galleries.empty? -%> <h2>Please Upload Images to a Gallery</h2> <div class="center field"> <%= image_tag('/grandstand/images/icons/galleries-empty.png', :alt => 'No Galleries') %> </div> <div class="toolbar"> <%= button_link_to('Add a Gallery', new_grandstand_gallery_path, :class => 'remote', :default => true, :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grandstand-0.3.0 | app/views/grandstand/galleries/editor.html.erb |