Sha256: 9a7b8b1f8e0dfd75771b119c7f5b35d058c4a679ca6ff8a4d23bd3a922c6714e
Contents?: true
Size: 487 Bytes
Versions: 9
Compression:
Stored size: 487 Bytes
Contents
<% year ||= Time.now.year folder ||= @folder heading ||= 'Archive' %> <% pages_by_month = folder.children.group_by(&:month) %> <h3><%= heading %></h3> <ul class="archive"> <% 1.upto(12) do | month | %> <li><a href="<%= document_archive_path(folder.root.permalink, month.to_s, year.to_s) %>"><%= Date::MONTHNAMES[month] %></a> <small>(<%= pages_by_month[Date::MONTHNAMES[month]] ? pages_by_month[Date::MONTHNAMES[month]].size.to_s : '0' %>)</small> </li> <% end %> </ul>
Version data entries
9 entries across 9 versions & 1 rubygems