32 lines
1011 B
Plaintext
32 lines
1011 B
Plaintext
-if @article.image_file
|
|
-img_url = @article.image_file.file.large.url
|
|
-@facebook_img = @article.image_file.file.large.medium.url
|
|
|
|
.article_top{:style => "background-image:url('#{img_url}');", :class => ("with_img" if img_url)}
|
|
-if !@article.gradient_cached
|
|
.gradient
|
|
|
|
-if !@article.title_cached
|
|
%h1{:style => ("bottom:#{@article.title_bottom}px;" if @article.title_bottom?).to_s}
|
|
=@lang_article.title
|
|
|
|
|
|
.article_content=render @article.blocks.find_by_lang_site_id(@lang.id)
|
|
|
|
-if @article.commentable
|
|
.article_comments
|
|
|
|
#comments
|
|
%h3 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"
|
|
|