

-if @lang_article.image_file
  -@img_url = @lang_article.image_file.file.large.url 
  -@facebook_img =  @lang_article.image_file.file.large.medium.url

-elsif @article.image_file
  -@img_url = @article.image_file.file.large.url 
  -@facebook_img =  @article.image_file.file.large.medium.url
  
-else
  -@img_url = "/fond-default.jpg"
  -@facebook_img = @img_url
  
-if @article.without_text_image_file
  -@facebook_img = @article.without_text_image_file.file.large.medium.url
  
  
  
-@twitter_title = @lang_article.twitter_title if @lang_article.twitter_title?



-@facebook_title = @facebook_title || @title
- @twitter_title = @twitter_title || @title


#actus
  
  .center

    #left_actus
      
      .render_block
        =render @article.blocks.find_by_lang_site_id(@lang.id)
      
      
    #right_actus

      =render :partial => "public/articles/sidebar"


-if current_admin
  .admin_panel
    =link_to "Modifier cet article", edit_admin_article_path(:id => @article.id, :lang => @lang.slug), :class => "btn btn-primary"
   