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-9.2.3 app/views/articles/archives.html.erb
publify_core-9.2.2 app/views/articles/archives.html.erb
publify_core-9.2.1 app/views/articles/archives.html.erb
publify_core-9.2.0 app/views/articles/archives.html.erb