mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 22:46:32 +08:00
FIX: Show all parent categories on topic page (#8767)
This commit is contained in:
parent
7b7e1717f2
commit
b25d9e96c1
|
@ -75,6 +75,9 @@ export function categoryLinkHTML(category, options) {
|
|||
if (options.categoryStyle) {
|
||||
categoryOptions.categoryStyle = options.categoryStyle;
|
||||
}
|
||||
if (options.recursive) {
|
||||
categoryOptions.recursive = true;
|
||||
}
|
||||
}
|
||||
return new Handlebars.SafeString(
|
||||
categoryBadgeHTML(category, categoryOptions)
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{{#unless topic.isPrivateMessage}}
|
||||
{{#if topic.category.parentCategory}}
|
||||
{{bound-category-link topic.category.parentCategory}}
|
||||
{{/if}}
|
||||
{{bound-category-link topic.category hideParent=true}}
|
||||
{{bound-category-link topic.category recursive=true hideParent=true}}
|
||||
{{/unless}}
|
||||
<div class="topic-header-extra">
|
||||
{{#if siteSettings.tagging_enabled}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user