bisscomm/refinerycms-products

View on GitHub
app/views/refinery/products/categories/show.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title, @category.title %>

<% content_for :body do %>
  <h1 class="visuallyhidden"><%= @category.title %></h1>
  <section>
    <% if @products.any? %>
      <ul id="products">
        <%= render :partial => '/refinery/products/shared/product', :collection => @products %>
      </ul>
    <% else %>
      <p>
        <strong>
          <%= t('.no_items_yet') %>
        </strong>
      </p>
    <% end %>
  </section>
<% end %>

<%= render '/refinery/content_page', :hide_sections => [:side_body, :body_content_title] %>