Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Created September 6, 2013 13:33
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/6463860 to your computer and use it in GitHub Desktop.
Save maasdesigner/6463860 to your computer and use it in GitHub Desktop.
<% content_for :body_content_right do %>
<ul id='gallery'>
<% @page.images.each_with_index do |image, index| %>
<li>
<%= link_to image_tag(image.thumbnail("200x200#c").url, id: 'image-id') %>
<div class="lb-overlay" id="image-id">
<%= image_tag image.thumbnail("900x600").url, id: 'image-id'%>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</div> </li>
<% end %>
</ul>
<% end %>
<%= render '/refinery/content_page', :hide_sections => :body_content_title %>
<%= render '/refinery/photo_gallery/albums/show' %>
<%= render '/refinery/contacts/contacts/show' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment