From c1a18f91efa06d16cbc50afd499a11df7c36deb5 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 1 Jun 2015 15:25:57 +1000 Subject: [PATCH] FEATURE: Add parent category link to nojs view --- app/views/list/list.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 5647d6d1b1..81663c7d86 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -1,5 +1,11 @@ <% if @category %>

+ <% if @category.parent_category %> + <%= link_to @category.parent_category.url, itemprop: 'item' do %> + <%= @category.parent_category.name %> + <% end %> +   + <% end %> <%= link_to @category.url, itemprop: 'item' do %> <%= @category.name %> <% end %>