FEATURE: Add parent category link to nojs view
This commit is contained in:
parent
7942b28780
commit
c1a18f91ef
|
@ -1,5 +1,11 @@
|
||||||
<% if @category %>
|
<% if @category %>
|
||||||
<h1>
|
<h1>
|
||||||
|
<% if @category.parent_category %>
|
||||||
|
<%= link_to @category.parent_category.url, itemprop: 'item' do %>
|
||||||
|
<span itemprop='name'><%= @category.parent_category.name %></span>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% end %>
|
||||||
<%= link_to @category.url, itemprop: 'item' do %>
|
<%= link_to @category.url, itemprop: 'item' do %>
|
||||||
<span itemprop='name'><%= @category.name %></span>
|
<span itemprop='name'><%= @category.name %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue