
.share_content
  ="Ligne de partage" if @admin
  .socials_links{:style => "text-align:center;margin:20px 0;"}
    -if input.facebook
      =link_to "https://www.facebook.com/sharer/sharer.php?u=#{input.url}", :target => "_blank", :class => "round_social facebook" do
        =image_tag("https://olwen.quartz.xyz/share_contents/facebook.png", :style => "height:40px;margin:5px 5px;")
    
      =#"https://www.facebook.com/sharer/sharer.php?u=#{request.url}"
    
    -if input.twitter
      =link_to "https://twitter.com/intent/tweet?url=#{input.url}&via=onevoiceanimal&text="+CGI::escape(input.twitter_title.to_s), :target => "_blank", :class => "round_social twitter" do
        =image_tag("https://olwen.quartz.xyz/share_contents/twitter.png", :style => "height:40px;margin:5px 5px;")
    
      =#"https://twitter.com/intent/tweet?url=#{request.url}&via=onevoiceanimal&text="+CGI::escape(@twitter_title.to_s)
    
    -if input.mail
      =link_to "mailto:?cc=&bcc=&subject="+URI.encode(input.mail_subject)+"&body="+URI.encode(input.mail_content), :class => "round_social twitter" do
        =image_tag("https://olwen.quartz.xyz/share_contents/mail.png", :style => "height:40px;margin:5px 5px;")
      
    =#"https://twitter.com/intent/tweet?url=#{request.url}&via=onevoiceanimal&text="+CGI::escape(@twitter_title.to_s)
  

  =# form.input :mail_subject, :label => "Sujet mail :"
  =# form.input :mail_content, :label => "Contenu mail :", :as => :text