Sha256: b7f0a3fb5e808a8b8535d84cbaa400f6b829afe74d595d3680026c3a74cb1f29

Contents?: true

Size: 501 Bytes

Versions: 24

Compression:

Stored size: 501 Bytes

Contents

<% if @articles.empty? %>
  <div class="post">
    <p><%= t('.no_articles_found') %></p>
  </div>
<% else %>
  <%= cache [@articles, params[:page]] do %>
    <% @articles.group_by(&:publication_month).each do |_month, articles| %>
      <h3 class="archivemonth">
        <%= l(articles.first.published_at, format: :letters_month_with_year) %>
      </h3>
      <%= render partial: 'archives_article', collection: articles, as: :article %>
    <% end %>
  <% end %>
<% end %>
<%= paginate @articles %>

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
publify_core-10.0.2 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.5.0 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.4.0 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.3.0 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.2.0 app/views/articles/archives.html.erb
publify_core-10.0.1 app/views/articles/archives.html.erb
publify_core-10.0.0 app/views/articles/archives.html.erb
publify_core-9.2.10 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.1.1 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.1.0 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.0.3 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.0.2 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.0.1 app/views/articles/archives.html.erb
HornsAndHooves-publify_core-10.0.0 app/views/articles/archives.html.erb
publify_core-9.2.9 app/views/articles/archives.html.erb
publify_core-9.2.8 app/views/articles/archives.html.erb
publify_core-9.2.7 app/views/articles/archives.html.erb
publify_core-9.2.6 app/views/articles/archives.html.erb
publify_core-9.2.5 app/views/articles/archives.html.erb
publify_core-9.2.4 app/views/articles/archives.html.erb