mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Make category-chooser show all parent categories (#8706)
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
{{#if category}}
|
||||
{{#if hasParentCategory}}
|
||||
<div class="category-status">
|
||||
<div class="category-status">
|
||||
{{#if hasParentCategory}}
|
||||
{{#unless hideParentCategory}}
|
||||
{{badgeForParentCategory}}
|
||||
{{/unless}}
|
||||
{{badgeForCategory}}
|
||||
<span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
|
||||
× {{topicCount}}
|
||||
</span>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="category-status">
|
||||
{{badgeForCategory}}
|
||||
<span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
|
||||
× {{topicCount}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{badgeForCategory}}
|
||||
<span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
|
||||
× {{topicCount}}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{{#if shouldDisplayDescription}}
|
||||
<div class="category-desc">{{{dir-span description}}}</div>
|
||||
|
||||
Reference in New Issue
Block a user