Sha256: 7ce244bf30abe0a2c062a36919609c00a946129a2fecffd690d70d8153831d37
Contents?: true
Size: 899 Bytes
Versions: 6
Compression:
Stored size: 899 Bytes
Contents
<% @article_counter = -1 %> <h1><%= _('Search results for:')%> <%= h(params[:q]) %></h1> <% @articles.each do |article| %> <div class='category-excerpt <%= "border" if @article_counter >= 0 %>' id="article-<%= article.id %>"> <h2><%= link_to_permalink(article,article.title) %></h2> <p><%= article.body.strip_html.slice(0, 300) %> [...]</p> <div class='author'> Le <%= "#{article.published_at.strftime('%d')} #{_(article.published_at.strftime('%B'))} #{article.published_at.strftime('%Y')}" %> </div> <div class='comments'> <%= display_comments_counter(article) %> </div> </div> <% @article_counter+=1 %> <% if @article_counter == 2 -%> <% @article_counter = 0 %> <% end -%> <% if @article_counter == 0 -%> <br class='clear' /> <% end %> <% end %> <div id='paginate'> <%= will_paginate @articles, { :previous_label => 'Précédent', :next_label => 'Suivant' } %> </div>
Version data entries
6 entries across 6 versions & 1 rubygems