FIX: Show all parent categories on topic page (#8767)

This commit is contained in:
Dan Ungureanu 2020-01-22 17:39:50 +02:00 committed by GitHub
parent 7b7e1717f2
commit b25d9e96c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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}}