initforthe/spina-blog

View on GitHub
app/components/spina/blog/archived_posts_widget_component.html.erb

Summary

Maintainability
Test Coverage
<ul class="spina-blog-archived-posts-widget">
  <% @posts_years.each do |py| %>
    <li class="spina-blog-archived-posts-widget-year"><%= link_to(py.year, py.path) %> (<%= py.count %>)</li>
  <% end %>
</ul>