crossey_app/app/views/public/articles/index.html.haml
2013-09-30 17:42:55 +02:00

13 lines
398 B
Plaintext

%h1 Toutes nos actualités
-@actus = Article.recents.before(Time.now)
-for actu in @actus do
.actu_list
=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= sanitize actu.description
%p=link_to "En savoir plus", public_article_path(actu.slug)
%p{:style => "clear:both;"}