Skip to content

Instantly share code, notes, and snippets.

@dankozlowski
Created December 14, 2011 05:31
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 dankozlowski/1475403 to your computer and use it in GitHub Desktop.
Save dankozlowski/1475403 to your computer and use it in GitHub Desktop.
.span-2  
.span-20
#gallery
= image_tag 'rails.png'
= image_tag 'david_logo.png'
:javascript
Galleria.loadTheme("#{root_path}/public/themes/classic/galleria.classic.min.js");
$("#gallery").galleria({
width: 500,
height: 500
});
- for work in @works
.span-10
= link_to image_tag(work.image.url, :width => "350px", :style => "border: 1px solid #000;"), work.image.url, :rel => "prettyPhoto", :title => work.desc.html_safe
.span-10.last
%strong.stylize.big= work.text
- if work.designer
.stylize.black.big= work.designer.first_name + " " + work.designer.last_name
- else
.stylize.black.big trÉsor
%br
%p= work.desc.html_safe
%br
.stylize= link_to "Inquire about this peice", :controller => :pages, :action => :inquiry, :id => work.id
.clear
%br
.span-2.last  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment