pw_app/app/views/public/articles/show.html.haml
Nicolas Bally 2a1d9dadc7 initial
2015-10-26 15:00:29 +01:00

31 lines
1.9 KiB
Plaintext

.center
.row
.columns.span_8
%article
=render :partial => "public/articles/article_intro", :locals => {:article => @article}
.share_in_social
=link_to image_tag("front/twitter_dark.png", :mouseover => "front/twitter_active.png" ), "http://twitter.com/intent/tweet?source=sharethiscom&text=Blog de Nicolas Bally : "+@article.title+"&url="+article_url(:slug => @article.slug), :target => "_blank",:title => "partager sur twitter l'article du blog de Nicolas Bally : "+@article.title.to_s
=link_to image_tag("front/facebook_dark.png", :mouseover => "front/facebook_active.png"), "https://www.facebook.com/sharer.php?u="+article_url(:slug => @article.slug)+"&t=Blog de Nicolas Bally : "+@article.title+"", :target => "_blank",:title => "partager sur facebook l'article du blog de Nicolas Bally : "+@article.title.to_s
=link_to image_tag("front/viadeo_dark.png", :mouseover => "front/viadeo_active.png"), "http://www.viadeo.com/shareit/share/?url="+article_url(:slug => @article.slug)+"&title=Blog de Nicolas Bally : "+@article.title+"", :target => "_blank",:title => "partager sur viadeo l'article du blog de Nicolas Bally : "+@article.title.to_s
=link_to image_tag("front/in_dark.png", :mouseover => "front/in_active.png"), "http://www.linkedin.com/shareArticle?mini=true&summary="+@article.description+"&url="+article_url(:slug => @article.slug)+"&title=Blog de Nicolas Bally : "+@article.title+"", :target => "_blank",:title => "partager sur linked in l'article du blog de Nicolas Bally : "+@article.title.to_s
#comments
%h2 Commentaires
=render :partial => "public/comments/comment", :collection => @article.comments.where(:enabled => true, :parent_id => nil).order("created_at DESC")
=render :partial => "public/comments/form"
.columns.span_4
=render :partial => "sidebar_recents"
=render :partial => "sidebar_archives"