46 lines
1.0 KiB
Plaintext
46 lines
1.0 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
|
|
|
|
|
|
|
|
-@twitter_title = @lang_article.twitter_title if @lang_article.twitter_title?
|
|
|
|
|
|
|
|
-@facebook_title = @facebook_title || @title
|
|
- @twitter_title = @twitter_title || @title
|
|
.blog_content_show
|
|
|
|
%h1=@title
|
|
|
|
.center
|
|
|
|
|
|
.chapeau
|
|
-if @lang_article.chapeau?
|
|
=simple_format @lang_article.chapeau
|
|
-else
|
|
=simple_format @lang_article.description
|
|
|
|
|
|
.render_block
|
|
=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"
|
|
|