pic_vert_app/app/views/public/articles/_index.html.haml
Nicolas Bally df01f33887 actus
2015-10-23 23:36:55 +02:00

21 lines
529 B
Plaintext

-if @articles.size > 0
-articles = @articles
-if articles
.articles_index
-articles.each do |article|
%a{:href => public_article_path(:id => article.slug)}
.article_list
.image=image_tag article.image_file.file.large.medium.url if article.image_file
.description
%h1=article.title
=simple_format article.description
.clear
#articles_pagination= paginate @articles
-else
%p
Aucun article plublié.