mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
FEATURE: Add parent category link to nojs view
This commit is contained in:
parent
7942b28780
commit
c1a18f91ef
1 changed files with 6 additions and 0 deletions
|
@ -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 %>
|
||||
|
||||
<% end %>
|
||||
<%= link_to @category.url, itemprop: 'item' do %>
|
||||
<span itemprop='name'><%= @category.name %></span>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue