mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Show unread and new counts on sub-categories on /categories page
This commit is contained in:
parent
0420df14f3
commit
78c7c03d26
@ -41,8 +41,14 @@
|
|||||||
{{#if subcategories}}
|
{{#if subcategories}}
|
||||||
<div class='subcategories'>
|
<div class='subcategories'>
|
||||||
{{i18n categories.subcategories}}
|
{{i18n categories.subcategories}}
|
||||||
{{#each subcategory in subcategories}}
|
{{#each subcategories}}
|
||||||
{{categoryLink subcategory}}
|
{{categoryLink this}}
|
||||||
|
{{#if unreadTopics}}
|
||||||
|
<a href={{unbound unreadUrl}} class='badge new-posts badge-notification' title='{{i18n topic.unread_topics count="unreadTopics"}}'>{{unbound unreadTopics}}</a>
|
||||||
|
{{/if}}
|
||||||
|
{{#if newTopics}}
|
||||||
|
<a href={{unbound newUrl}} class='badge new-posts badge-notification' title='{{i18n topic.new_topics count="newTopics"}}'>{{unbound newTopics}} <i class='fa fa-asterisk'></i></a>
|
||||||
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Loading…
Reference in New Issue
Block a user