Sha256: 455a66546a44e4924f6a5d1079be625f7476b15b4378ed7d68b842d6a85e3776

Contents?: true

Size: 945 Bytes

Versions: 6

Compression:

Stored size: 945 Bytes

Contents

<% if @articles.empty? %>
    <div class="post">
    <p><%= t(".no_articles_found")%></p>
  </div>
<% else
currentmonth = 0
currentyear = 0
for article in @articles
  if (article.published_at.month != currentmonth || article.published_at.year != currentyear)
    currentmonth = article.published_at.month
    currentyear = article.published_at.year %>
  <h3 class="archivemonth">
      <%= l(article.published_at, format: :letters_month_with_year) %>
    </h3>
  <% end %>
    <div class="archivepost">
      <%= article.published_at.mday %> -
      <%= link_to_permalink(article,h(article.title)) %>
      <% if !article.tags.empty? %> <%= t(".posted_in") %>
        <%= safe_join(article.tags.collect {|t| link_to_permalink t,t.display_name }, ", ") %>
    <% end %>
    </div>
  <% end %>
  <% end %>
  +<%= paginate @articles, next_label: "#{t("pagination.next_page")} &raquo;", previous_label: "&laquo; #{t('pagination.previous_page')}" %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
publify_core-9.0.0.pre6 app/views/articles/archives.html.erb
publify_core-9.0.0.pre5 app/views/articles/archives.html.erb
publify_core-9.0.0.pre4 app/views/articles/archives.html.erb
publify_core-9.0.0.pre3 app/views/articles/archives.html.erb
publify_core-9.0.0.pre2 app/views/articles/archives.html.erb
publify_core-9.0.0.pre1 app/views/articles/archives.html.erb