70 lines
2.1 KiB
Plaintext
70 lines
2.1 KiB
Plaintext
#plume_wrapper
|
|
=render :partial => "top"
|
|
|
|
.plume_home
|
|
.sommaire
|
|
=render :partial => "sommaire"
|
|
|
|
.right_plume
|
|
-id = []
|
|
|
|
-id << @plume.v_une_1.id if @plume.v_une_1
|
|
|
|
-id << @plume.v_une_2.id if @plume.v_une_2
|
|
|
|
|
|
|
|
-@plume.plume_articles.where(:id => id).each do |article|
|
|
=link_to public_plume_article_path(article) do
|
|
.article
|
|
.inner
|
|
.image.with_ratio.fill_img{:style => "background-image:url('"+(article.image_file.file.large.medium.url if article.image_file).to_s+"');", :data => {:ratio => 0.6}}
|
|
|
|
|
|
.description
|
|
-if article.plume_cat
|
|
.plume_cat= article.plume_cat.title
|
|
%h2=article.title
|
|
.desc
|
|
=article.description
|
|
|
|
.clear
|
|
-id = []
|
|
|
|
-id << @plume.v_une_3.id if @plume.v_une_3
|
|
|
|
|
|
|
|
-@plume.plume_articles.where(:id => id).each do |article|
|
|
=link_to public_plume_article_path(article) do
|
|
.article_large.article
|
|
.inner
|
|
.image.with_ratio.fill_img{:style => "background-image:url('"+(article.image_file.file.large.medium.url if article.image_file).to_s+"');", :data => {:ratio => 0.6}}
|
|
|
|
|
|
.description
|
|
-if article.plume_cat
|
|
.plume_cat= article.plume_cat.title
|
|
%h2=article.title
|
|
.desc
|
|
=article.description
|
|
.clear
|
|
|
|
.plume_right_buttons
|
|
-if @plume.data_file
|
|
=link_to "Télécharger la version PDF", @plume.data_file.file.path, :target => "plume_pdf_#{plume.id}", :class => "btn"
|
|
-else
|
|
=link_to "Télécharger la version PDF", print_public_plume_path(@plume.id, :format => "pdf"), :target => "plume_pdf_#{@plume.id}", :class => "btn"
|
|
|
|
.clear
|
|
|
|
.plume_bottom
|
|
%p
|
|
="N°"+@plume.number
|
|
="-"
|
|
=@plume.p_version
|
|
|
|
%p.big
|
|
Comité de rédaction et de relecture :
|
|
%p
|
|
=@plume.redaction_credits |