Sha256: e2a3fb25cebb0decdec1bdeb781b7b8f91b34d7662150f78b51226cddde45db5
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
<% if @gallery %> <!--[if IE]> <style type="text/css"> .timer { display: none !important; } div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);zoom: 1; } </style> <![endif]--> <% content_for :head do %> <%= javascript_include_tag "comfy_gallery/jquery.orbit-1.2.3.min.js" %> <%= stylesheet_link_tag "comfy_gallery/carousel.css" %> <% end %> <% content_for :doc_ready do %> $('#featured').orbit(); <% end %> <% if @gallery.photos.count > 0 %> <div id="featured"> <% @gallery.photos.order(:position).each do |photo| %> <%= image_tag(photo.image.url(:full), :alt => photo.description, :id => dom_id(photo), :"data-caption" => "##{dom_id(photo)}htmlCaption") %> <% end %> </div> <% @gallery.photos.reject{|p| p.description.blank?}.each do |photo| %> <span class="orbit-caption" id="<%=dom_id(photo)%>htmlCaption"> <%= photo.description %> </span> <% end %> <% else %> <em>No photos in this gallery.</em> <% end %> <% else %> No images were found. <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfy_gallery-0.1.1 | app/views/gallery/_carousel.html.erb |
comfy_gallery-0.1.0 | app/views/gallery/_carousel.html.erb |