Also show new sub-category badge in the message at the bottom of a topic

This commit is contained in:
Neil Lalonde 2014-03-25 16:20:13 -04:00
parent a40896bb55
commit ac32b1c5a5

View file

@ -189,7 +189,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
}
if (category) {
opts.catLink = Discourse.HTML.categoryLink(category);
opts.catLink = Discourse.HTML.categoryLink(category, {showParent: true});
} else {
opts.catLink = "<a href=\"" + Discourse.getURL("/categories") + "\">" + I18n.t("topic.browse_all_categories") + "</a>";
}