mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
DRY up the displaying of topic categories. Should not be duplicated.
This commit is contained in:
parent
df8880a71a
commit
48c7e20d80
3 changed files with 8 additions and 9 deletions
|
@ -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 a new issue