pw_app/app/views/public/articles/index.html.haml
Nicolas Bally 2a1d9dadc7 initial
2015-10-26 15:00:29 +01: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