blog_perso_app/app/views/public/articles/_article.html.haml
Nicolas Bally 8ffd3dade2 design
2015-04-11 19:21:18 +02:00

24 lines
528 B
Plaintext

-if !article.thumb_style?
.article_small
-if article.image_file
=image_tag(article.image_file.file.square.url, :class => "img")
%h3=link_to article.title, article_path(:slug => article.slug), :title => " "+article.title.to_s
%p.article_infos
%time.updated{:datetime => Time.now, :pubdate => true}
="le "+l(article.published_at, :format => :human_date)
.clear
-else
=render :partial => "public/articles/#{article.thumb_style}", :locals => {:article => article}