gs_app/app/views/public/articles/_article.html.haml
2014-04-16 21:10:47 +02:00

47 lines
1.8 KiB
Plaintext

%article
.article_body
-if !article.title_cached
%h2.principal=link_to article.title, public_article_path(:id => article.slug)
.infos
le
=l(article.published_at, :format => :human_date)
="-"
-if article.comments.count == 0
=link_to "Pas de commentaires", public_article_path(:id => article.slug, :anchor => "comments")
-elsif article.comments.count == 1
=link_to "1 commentaire", public_article_path(:id => article.slug, :anchor => "comments")
-else
=link_to "#{article.comments.count} commentaires", public_article_path(:id => article.slug, :anchor => "comments")
-if 1 != 1
.aside
.comments_buble
%a{:href => public_article_path(:id => article.slug, :anchor => "comments") }
%div{:style => "padding-top:2px;font-size:26px;"}
=i(:"comment-o")
%div
=article.comments.count
=render article.block
.share_buble
=link_to i(:"twitter"), "http://twitter.com/intent/tweet?source=sharethiscom&text=Vivre : "+article.title+"&url="+public_article_path(:id => article.slug), :target => "_blank",:title => "partager sur twitter Vivre : "+article.title.to_s
=link_to i(:"facebook"), "https://www.facebook.com/sharer.php?u="+public_article_path(:id => article.slug)+"&t=Vivre : "+article.title+"", :target => "_blank",:title => "partager sur facebook Vivre : "+article.title.to_s
=link_to i(:"pinterest"), "https://www.facebook.com/sharer.php?u="+public_article_path(:id => article.slug)+"&t=Vivre : "+article.title+"", :target => "_blank",:title => "partager sur facebook Vivre : "+article.title.to_s
.hr
="- - - - - - - - - - - - - - - -"