53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
|
|
-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_content_show
|
|
|
|
|
|
.article_content
|
|
|
|
.article_top{:style => "background-image:url('#{img_url}');", :class => ("with_img" if img_url)}
|
|
|
|
|
|
.article_inner
|
|
|
|
-if !@article.title_cached
|
|
%h1
|
|
-if @lang_article.html_title?
|
|
=raw @lang_article.html_title
|
|
-else
|
|
=@lang_article.title
|
|
|
|
%p.date
|
|
le
|
|
=l(@article.published_at, :format => :human_date)
|
|
|
|
|
|
|
|
=render @article.blocks.find_by_lang_site_id(@lang.id)
|
|
|
|
|
|
|
|
|
|
-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
|
|
|
|
|
|
|