Add parent category link to title of topics in a subcategory

This commit is contained in:
Neil Lalonde 2014-01-27 15:12:14 -05:00
parent 1609950781
commit 578430fc1d
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@
<a {{bind-attr class=":star topic.starred:starred"}} {{action toggleStar}} href='#' {{bind-attr title="topic.starTooltip"}}></a>
{{/if}}
<h1>
{{#if topic.category.parentCategory}}
{{boundCategoryLink topic.category.parentCategory}}
{{/if}}
{{boundCategoryLink topic.category}}
{{#if topic.details.loaded}}
{{topicStatus topic=topic}}

View File

@ -19,6 +19,9 @@
<button class='btn btn-small' {{action cancelEditingTopic}}><i class='fa fa-times'></i></button>
{{else}}
<h1>
{{#if category.parentCategory}}
{{boundCategoryLink category.parentCategory}}
{{/if}}
{{boundCategoryLink category}}
{{#if details.loaded}}
{{topicStatus topic=model}}