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> <a {{bind-attr class=":star topic.starred:starred"}} {{action toggleStar}} href='#' {{bind-attr title="topic.starTooltip"}}></a>
{{/if}} {{/if}}
<h1> <h1>
{{#if topic.category.parentCategory}}
{{boundCategoryLink topic.category.parentCategory}}
{{/if}}
{{boundCategoryLink topic.category}} {{boundCategoryLink topic.category}}
{{#if topic.details.loaded}} {{#if topic.details.loaded}}
{{topicStatus topic=topic}} {{topicStatus topic=topic}}

View File

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