mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 18:29:39 +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) {
|
if (options.categoryStyle) {
|
||||||
categoryOptions.categoryStyle = options.categoryStyle;
|
categoryOptions.categoryStyle = options.categoryStyle;
|
||||||
}
|
}
|
||||||
|
if (options.recursive) {
|
||||||
|
categoryOptions.recursive = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return new Handlebars.SafeString(
|
return new Handlebars.SafeString(
|
||||||
categoryBadgeHTML(category, categoryOptions)
|
categoryBadgeHTML(category, categoryOptions)
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
{{#unless topic.isPrivateMessage}}
|
{{#unless topic.isPrivateMessage}}
|
||||||
{{#if topic.category.parentCategory}}
|
{{bound-category-link topic.category recursive=true hideParent=true}}
|
||||||
{{bound-category-link topic.category.parentCategory}}
|
|
||||||
{{/if}}
|
|
||||||
{{bound-category-link topic.category hideParent=true}}
|
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<div class="topic-header-extra">
|
<div class="topic-header-extra">
|
||||||
{{#if siteSettings.tagging_enabled}}
|
{{#if siteSettings.tagging_enabled}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user