mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 10:56:41 +08:00
Show new sub-category styling in hamburger menu too
This commit is contained in:
parent
e7ceb58cf4
commit
497a03fc2c
@ -68,6 +68,7 @@ Discourse.HTML = {
|
|||||||
@param {Discourse.Category} category the category whose link we want
|
@param {Discourse.Category} category the category whose link we want
|
||||||
@param {Object} opts The options for the category link
|
@param {Object} opts The options for the category link
|
||||||
@param {Boolean} opts.allowUncategorized Whether we allow rendering of the uncategorized category
|
@param {Boolean} opts.allowUncategorized Whether we allow rendering of the uncategorized category
|
||||||
|
@param {Boolean} opts.showParent Whether to visually show whether category is a sub-category
|
||||||
@returns {String} the html category badge
|
@returns {String} the html category badge
|
||||||
**/
|
**/
|
||||||
categoryLink: function(category, opts) {
|
categoryLink: function(category, opts) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{categoryLink this allowUncategorized=true}}
|
{{categoryLink this allowUncategorized=true showParent=true}}
|
||||||
{{#if showBadges}}
|
{{#if showBadges}}
|
||||||
{{#if unreadTopics}}
|
{{#if unreadTopics}}
|
||||||
<a href={{unbound unreadUrl}} class='badge unread-posts badge-notification' title='{{i18n topic.unread_topics count="unreadTopics"}}'>{{unreadTopics}}</a>
|
<a href={{unbound unreadUrl}} class='badge unread-posts badge-notification' title='{{i18n topic.unread_topics count="unreadTopics"}}'>{{unreadTopics}}</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user