danielle_app/app/views/public/artworks/_artwork.html.haml
2013-10-23 00:48:44 +02:00

23 lines
803 B
Plaintext

%hr
#artwork.artwork.close_large{:id => artwork.id, :onclick => "if($(this).closest('#large_place').length == 0){$('#large_place').html($(this).closest('.artwork').clone());$('#large_place').fadeIn();return false;}else{$(this).closest('.large_place').fadeOut();}"}
.frame.close_large
.inner.close_large
-artwork.artwork_images.each do |artwork_image|
.column.close_large{:style => "width:"+(100/artwork.artwork_images.size).to_s+"%;text-align:center;float:left;"}
.img.close_large
=image_tag(artwork_image.image.large.medium.url, :alt => "Script Art - Danielle riche : #{@portfolio.title} - #{artwork.title}")
%p{:style => "clear:both;"}
%h3=artwork.title
%em= artwork.description
=artwork.artwork_image.image.filename