FEATURE: Add parent category link to nojs view

This commit is contained in:
Sam 2015-06-01 15:25:57 +10:00
parent 7942b28780
commit c1a18f91ef
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,11 @@
<% if @category %>
<h1>
<% if @category.parent_category %>
<%= link_to @category.parent_category.url, itemprop: 'item' do %>
<span itemprop='name'><%= @category.parent_category.name %></span>
<% end %>
&nbsp;
<% end %>
<%= link_to @category.url, itemprop: 'item' do %>
<span itemprop='name'><%= @category.name %></span>
<% end %>