Sha256: 0c3c169c449ebb1f847efde8c81bfb2184f53d0c117bf8b1f88ae5c5818c7139

Contents?: true

Size: 829 Bytes

Versions: 16

Compression:

Stored size: 829 Bytes

Contents

<% if @articles.to_a.empty? -%>
<div class="post">
<p><%= _("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"><%= _(Date::MONTHNAMES[article.published_at.month]) %> <%= article.published_at.year %></h3>
           <% end -%>
  <div class="archivepost">
  <%= article.published_at.mday %> -
  <%= link_to_permalink(article,h(article.title)) %>
  <% if !article.categories.empty? %> <%= _("posted in") %>
  <%= article.categories.collect {|c| link_to_permalink c,c.name }.join(", ") -%>
  <% end -%>
 </div>
<% end
  end -%>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
typo-5.5 app/views/articles/archives.html.erb
typo-5.4.4 app/views/articles/archives.html.erb
typo-5.4.3 app/views/articles/archives.html.erb
typo-5.4.2 app/views/articles/archives.html.erb
typo-5.4.1 app/views/articles/archives.html.erb
typo-5.4 app/views/articles/archives.html.erb
typo-5.0.3.98.1 app/views/articles/archives.html.erb
typo-5.0.3.98 app/views/articles/archives.html.erb
typo-5.1.1 app/views/articles/archives.html.erb
typo-5.1.2 app/views/articles/archives.html.erb
typo-5.1.3 app/views/articles/archives.html.erb
typo-5.1.98 app/views/articles/archives.html.erb
typo-5.1 app/views/articles/archives.html.erb
typo-5.2 app/views/articles/archives.html.erb
typo-5.2.98 app/views/articles/archives.html.erb
typo-5.3 app/views/articles/archives.html.erb