DRY up the displaying of topic categories. Should not be duplicated.
This commit is contained in:
parent
df8880a71a
commit
48c7e20d80
|
@ -0,0 +1,6 @@
|
|||
{{#if topic.category.parentCategory}}
|
||||
{{bound-category-link topic.category.parentCategory}}
|
||||
{{/if}}
|
||||
{{bound-category-link topic.category hideParent=true}}
|
||||
|
||||
{{plugin-outlet "topic-category"}}
|
|
@ -112,10 +112,7 @@
|
|||
{{/if}}
|
||||
{{/if}}
|
||||
</h1>
|
||||
{{#if topic.category.parentCategory}}
|
||||
{{bound-category-link topic.category.parentCategory}}
|
||||
{{/if}}
|
||||
{{bound-category-link topic.category hideParent=true}}
|
||||
{{topic-category topic=topic}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -43,11 +43,7 @@
|
|||
</h1>
|
||||
|
||||
{{#unless isPrivateMessage}}
|
||||
{{#if category.parentCategory}}
|
||||
{{bound-category-link category.parentCategory}}
|
||||
{{/if}}
|
||||
{{bound-category-link category hideParent=true}}
|
||||
{{plugin-outlet "topic-category"}}
|
||||
{{topic-category topic=model}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue