From 281e430a89bafa3640abe91a2ee3078fa437d576 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 13 Nov 2017 16:56:20 +1100 Subject: [PATCH] UX: expand parent category in full screen search results --- .../javascripts/discourse/templates/full-page-search.hbs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/templates/full-page-search.hbs b/app/assets/javascripts/discourse/templates/full-page-search.hbs index 1ce6a3f4c82..163aac03fc7 100644 --- a/app/assets/javascripts/discourse/templates/full-page-search.hbs +++ b/app/assets/javascripts/discourse/templates/full-page-search.hbs @@ -82,7 +82,10 @@
- {{category-link result.topic.category}} + {{#if result.topic.category.parentCategory}} + {{category-link result.topic.category.parentCategory}} + {{/if}} + {{category-link result.topic.category hideParent=true}} {{#each result.topic.tags as |tag|}} {{discourse-tag tag}} {{/each}}