Sha256: e8b4fc7dcd68d5a1551e36c43d0b6290f8f0de60f9fff2620014af59e276b6b7
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
<div class="post-archive"> <% posts.group_by(&:year).each do |year, posts_by_year| %> <h4 class="year"><%= link_to year, post_date_path(year) %></h4> <% index = 0 %> <% posts_by_year.group_by(&:month).each do |month, posts_by_month| %> <div class="month<%= ' alt' if (index += 1) % 2 == 0 %>"> <h5 class="month"><%= link_to "#{Date::MONTHNAMES[month]} #{year}", post_date_path(year, month) %></h5> <ul class="archive"> <% posts_by_month.group_by(&:day).each do |day, posts_by_day| %> <li> <span class="day"> <%= link_to day, post_date_path(year, month, day) %> </span> <ul class="posts"> <% posts_by_day.each_with_index do |post, index| %> <li><%= link_to h(post.title), post_seo_path(post) %></li> <% end %> </ul> <br class="clear"/> </li> <% end %> </ul> </div> <% end %> <br class="clear"/> <% end %> </div> <% content_for :head do %> <%= stylesheet_link_tag 'posts' %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_essential_blog-0.1.0 | app/views/blog/shared/_archive.html.erb |
spree_essential_blog-0.1.0.rc1 | app/views/blog/shared/_archive.html.erb |