21 lines
529 B
Plaintext
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é. |