Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Last active December 22, 2015 11:09
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/6464128 to your computer and use it in GitHub Desktop.
Save maasdesigner/6464128 to your computer and use it in GitHub Desktop.
CHANGE THIS show.html.erb
<% 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), image.thumbnail("900x600").url %>
<span class='caption'><%=raw @page.caption_for_image_index(index) %></span>
</li>
<% end %>
</ul>
<% end %>
<%= render '/refinery/content_page', :hide_sections => :body_content_title %>
LIKE THIS
<ul class="lb-album">
<li>
<a href="#image-01">
<img src="1smal.jpg" alt="image01">
<span>Dr. Bekir ÇELEBİ</span> </a>
<div class="lb-overlay" id="image-1">
<a href="#page" class="lb-close"></a>
<img src="big10.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