NathanHo28/Biblio — pull request #2 by NathanHo28 (2014-12-12 23:48:04+00:00)
Title: Fancybox2

Hey @leggrease @jimivyas @m3rrick , I implemented fancybox2 to show the images in a lightbox popup.

An interesting thing to note is the way fancybox2 groups images. It groups by the "rel" value so I set it as the following(story.title):

`````````````ruby

<%= link_to image_tag(page.page_photo_url(:medium)), page.page_photo_url(:medium), class: "fancybox", :rel => story.title, :title => page.caption %>

``````````````
Let me know if that makes sense or if I could refactor it any way!

Nathan