suite
This commit is contained in:
parent
4f7968dfbb
commit
a76eff9f81
@ -6,7 +6,17 @@
|
|||||||
=render :partial => "sommaire"
|
=render :partial => "sommaire"
|
||||||
|
|
||||||
.right_plume
|
.right_plume
|
||||||
-@plume.plume_articles.where(:id => [1,4]).each do |article|
|
-id = []
|
||||||
|
-cat = @plume.plume_cats.where(:title => "édito").first
|
||||||
|
-if cat
|
||||||
|
-id << cat.plume_articles.first.id if cat.plume_articles.first
|
||||||
|
|
||||||
|
-cat = @plume.plume_cats.where(:title => "Dossier").first
|
||||||
|
-if cat
|
||||||
|
-id << cat.plume_articles.first.id if cat.plume_articles.first
|
||||||
|
|
||||||
|
|
||||||
|
-@plume.plume_articles.where(:id => id).each do |article|
|
||||||
.article
|
.article
|
||||||
.inner
|
.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}}
|
.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}}
|
||||||
@ -20,8 +30,12 @@
|
|||||||
=article.description
|
=article.description
|
||||||
|
|
||||||
.clear
|
.clear
|
||||||
|
-id = []
|
||||||
|
-cat = @plume.plume_cats.where(:title => "Grain de sable").first
|
||||||
|
-if cat
|
||||||
|
-id << cat.plume_articles.first.id if cat.plume_articles.first
|
||||||
|
|
||||||
-@plume.plume_articles.where(:id => [5]).each do |article|
|
-@plume.plume_articles.where(:id => id).each do |article|
|
||||||
.article.article_large
|
.article.article_large
|
||||||
.inner
|
.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}}
|
.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}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user