Sha256: 45f963f98c5b24f2116aaa7376ec0ba9166771d9675fa66e1b7fd264c6431865
Contents?: true
Size: 845 Bytes
Versions: 9
Compression:
Stored size: 845 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 %> - <%= article_link h(article.title), article %> <% if !article.categories.empty? %> posted in <%= article.categories.collect {|c| link_to c.name, :controller=>"articles", :action=>"category", :id=>c.name }.join(", ") -%> <% end -%> </div> <% end end -%>
Version data entries
9 entries across 9 versions & 1 rubygems