urgence_app/app/views/public/articles/index.html.haml
Nicolas Bally a56f7e6049 initial
2015-09-28 23:42:38 +02:00

38 lines
707 B
Plaintext

-if @index_title
%h1=@index_title
.row
-i = 0
-@articles.each do |article|
-i = i +1
.columns.span_4
=link_to article_path(:slug => article.slug) do
.article_panel
%h2= article.title
%p{:style => "text-align:center;"}
="le "+l(article.published_at, :format => :human_date)
="-"
%span.coms=i(:"comment-o")+" "+article.comments.count.to_s
=image_tag article.image_file.file.large.medium.url if article.image_file
=simple_format article.description
=# raw("</div><div class='columns span_4'>") if (i%3) == 0
.clear
#articles_pagination= paginate @articles