mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:42:45 +08:00
UX: add header-categories-wrapper outlet (#30214)
This commit is contained in:
parent
aabf174ac8
commit
02eca6e489
|
@ -139,25 +139,30 @@ export default class Info extends Component {
|
|||
)
|
||||
}}
|
||||
<div class="categories-wrapper">
|
||||
{{#if @topicInfo.category.parentCategory}}
|
||||
{{#if
|
||||
(and
|
||||
@topicInfo.category.parentCategory.parentCategory
|
||||
this.site.desktopView
|
||||
)
|
||||
}}
|
||||
<PluginOutlet
|
||||
@name="header-categories-wrapper"
|
||||
@outletArgs={{hash category=@topicInfo.category}}
|
||||
>
|
||||
{{#if @topicInfo.category.parentCategory}}
|
||||
{{#if
|
||||
(and
|
||||
@topicInfo.category.parentCategory.parentCategory
|
||||
this.site.desktopView
|
||||
)
|
||||
}}
|
||||
{{categoryLink
|
||||
@topicInfo.category.parentCategory.parentCategory
|
||||
(hash hideParent="true")
|
||||
}}
|
||||
{{/if}}
|
||||
|
||||
{{categoryLink
|
||||
@topicInfo.category.parentCategory.parentCategory
|
||||
@topicInfo.category.parentCategory
|
||||
(hash hideParent="true")
|
||||
}}
|
||||
{{/if}}
|
||||
|
||||
{{categoryLink
|
||||
@topicInfo.category.parentCategory
|
||||
(hash hideParent="true")
|
||||
}}
|
||||
{{/if}}
|
||||
{{categoryLink @topicInfo.category (hash hideParent="true")}}
|
||||
{{categoryLink @topicInfo.category (hash hideParent="true")}}
|
||||
</PluginOutlet>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user