mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 09:14:14 +08:00
Also show new sub-category badge in the message at the bottom of a topic
This commit is contained in:
parent
a40896bb55
commit
ac32b1c5a5
|
@ -189,7 +189,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (category) {
|
if (category) {
|
||||||
opts.catLink = Discourse.HTML.categoryLink(category);
|
opts.catLink = Discourse.HTML.categoryLink(category, {showParent: true});
|
||||||
} else {
|
} else {
|
||||||
opts.catLink = "<a href=\"" + Discourse.getURL("/categories") + "\">" + I18n.t("topic.browse_all_categories") + "</a>";
|
opts.catLink = "<a href=\"" + Discourse.getURL("/categories") + "\">" + I18n.t("topic.browse_all_categories") + "</a>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user