Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Created September 4, 2013 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maasdesigner/6441791 to your computer and use it in GitHub Desktop.
Save maasdesigner/6441791 to your computer and use it in GitHub Desktop.
<ul id="gallery" class="clearfix">
<% photos_for_page.each_with_index do |photo, index| %>
<li>
<%= link_to (image_tag photo.preview_link(:album), :width => Refinery::PhotoGallery.album_dimensions[0], :height => Refinery::PhotoGallery.album_dimensions[1] ), photo.link_url, {
:target=> "_blank",
:class=>"fancybox",
:data =>{:title=> t('.image') + ' ' + (index + 1 ).to_s + '/' + photos_for_page.total_pages.to_s + ' ' + photo.title + '<br/><br/>' + photo.description},
:rel=>"group",
:title=> photo.title } %>
</li>
<% end %>
</ul>
<ul class="lb-album">
<li>
<a href="#image-1">
<%= image_tag "lit1.jpg", alt: "image01"%>
<span></span> </a>
<div class="lb-overlay" id="image-1">
<a href="#page" class="lb-close"></a>
<%= image_tag "full1.jpg", alt: "image01"%>
<div><h3> <span></span></h3></div></div></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment