site_perso_app/app/views/portfolios/_style_1.html.haml
2013-02-07 11:44:54 +01:00

15 lines
398 B
Plaintext

.portfolio
#intro{:style => "padding:10px;margin:1em auto;"}
%h1=@portfolio.title
=markdown @portfolio.markdown_content
#style_2_portfolio_images{:style => "margin:0 auto;"}
-@portfolio.images.each do |img|
-if img.photo?
.box=image_tag img.photo.thumb.url+"?"+img.updated_at.to_s, :class => "image", :style => "width:"+(img.ratio > 1 ? "200" : "200")+"px;padding:5px;"