28 lines
905 B
Plaintext
28 lines
905 B
Plaintext
|
|
|
|
-@first_actu = Article.frontpage.recents.before(Time.now).first
|
|
|
|
|
|
#derniere_actu{:style => "float:left;width:100%;"}
|
|
|
|
- if @first_actu
|
|
=image_tag(@first_actu.image_file.file.large.medium.small.thumb.url, :style => "float:left;width:192px;") if @first_actu.image_file
|
|
%h3=@first_actu.title
|
|
%p= sanitize @first_actu.description
|
|
=link_to "En savoir plus", public_article_path(@first_actu.slug)
|
|
%p{:style => "clear:both;"}
|
|
|
|
|
|
#dernieres_actus
|
|
|
|
-@actus = Article.frontpage.recents.before(Time.now).offset(1).limit(10)
|
|
|
|
-for actu in @actus do
|
|
.actu_accueil
|
|
=image_tag(actu.image_file.file.large.medium.small.thumb.url, :style => "width:80px;") if actu.image_file
|
|
%h3=link_to actu.title, public_article_path(actu.slug)
|
|
%p= simple_format actu.description
|
|
|
|
%p=link_to "En savoir plus", public_article_path(actu.slug)
|
|
%p{:style => "clear:both;"}
|