Sha256: 4a1d0daf749891a7413ee9ebc4629c7264e3fef1bbed0208e96319cf104e895f

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

<%
document ||= @document
skip_empty_months ||= true
-%>
<% document.archive.each do | year, posts_by_month | -%>
<ul class="submenu">
    <h4><%= year %></h4>
      <ul>
        <% (1..12).each do | month | -%>
          <% next if skip_empty_months && posts_by_month[month].empty? %>
          <li>
              <a href="<%= document_archive_path(document, month_name(month), year) %>"><%= month_name(month) %></a>
              <span>(<%= posts_by_month[month].size %>)</span><label></label>
          </li>
          <% end -%>
      </ul>
</ul>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qcms-2.1.0 app/views/pages/shared/_archive.erb
qcms-2.0.0 app/views/pages/shared/_archive.erb