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

-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
  
  
-if @article.without_text_image_file
  -@facebook_img = @article.without_text_image_file.file.large.medium.url
  
  
  


    
.blog_sidebar_top
  .blog_sidebar.left{:style => "float:left;"}=render :partial => "public/articles/sidebar"
      
.blog_content_show
  .inner{:style => "width:100%;float:left"}
    
    .article_content
    
      .article_top{:style => "background-image:url('#{img_url}');", :class => ("with_img" if img_url)}
        -if !@article.gradient_cached  
          =#.gradient 
  
  
    
      
      
      -if !@article.title_cached
        %h1
          -if @lang_article.html_title?
            =raw @lang_article.html_title
          -else
            =@lang_article.title
            
      %p.date
        =("le " if @lang.id != 2).to_s+l(@article.published_at, :format => :human_date)
        ="-"
        =link_to "#comments" do
          %span.coms=i(:"comment-o")+" "+@article.comments.where(:enabled => true).count.to_s
      
      =render @article.blocks.find_by_lang_site_id(@lang.id)
      -if @article.article_author
        .center
          .author
            =@article.article_author.title if @article.article_author.title
            =@article.article_author.name
    
    -if @article.juridique
      .article_comments_container  
        #question_juridiques
          .article_comments
            %h3 Vos questions à notre avocate
            %br
            %center
              =link_to ic(:plus)+" Posez votre question", new_public_question_juridique_path(:article_id => @article.id), :remote => true, :class => "ask_button"
          
            %br
      
            #question_juridique_form
      
      

            =render @article.question_juridiques.enableds.before(Time.now.end_of_day).order("created_at DESC").all


        
    
    -elsif @article.commentable
      .article_comments_container  
        .article_comments
   
          #comments
            %h3=qit "comments-title", "Commentaires"
            =render :partial => "public/comments/comment", :collection => @article.comments.where(:enabled => true, :parent_id => nil).order("created_at DESC")

            #comment_form
              .form_place=render :partial => "public/comments/form"
  
    

    -if current_admin
      .admin_panel
        =link_to "Modifier cet article", edit_admin_article_path(:id => @article.id, :lang => @lang.slug), :class => "btn btn-primary"
        =link_to "Télécharger l'image de bandeau", @article.image_file.file.large.url, :class => "btn btn-primary" if @article.image_file


.blog_sidebar_bottom
  .blog_sidebar=render :partial => "public/articles/sidebar"


