FIX: Make category-chooser show all parent categories (#8706)

This commit is contained in:
Dan Ungureanu
2020-01-19 13:07:54 +02:00
committed by GitHub
parent 79ec686ec9
commit eeefa1177f
5 changed files with 64 additions and 36 deletions

View File

@@ -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}}>
&times; {{topicCount}}
</span>
</div>
{{else}}
<div class="category-status">
{{badgeForCategory}}
<span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
&times; {{topicCount}}
</span>
</div>
{{/if}}
{{/if}}
{{badgeForCategory}}
<span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
&times; {{topicCount}}
</span>
</div>
{{#if shouldDisplayDescription}}
<div class="category-desc">{{{dir-span description}}}</div>