Sha256: 72715c631cecfdba97a20ae2ee3fb0ec4b229ce8b56708c8561df9e3d67e8793
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
<% if Spree::Slide.published.count > 0 %> <!-- Define slider dimensions here --> <style> #slider { width: 680px; height: 317px; } .slider-wrapper { margin:0 auto 50px auto; } </style> <!-- AnythingSlider initialization --> <script> // DOM Ready $(function(){ $('#slider').anythingSlider(); }); </script> <div class="slider-wrapper"> <ul id="slider"> <% Spree::Slide.published.each do |s| %> <li><%= link_to image_tag(s.image.url, :title => '#' + s.name.to_url), s.link_url %></li> <% end %> </ul> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems