message at the bottom for uncategorized was all mangled, fallback to the old way it used to behave
This commit is contained in:
parent
1b19444b44
commit
805feca5f2
|
@ -328,8 +328,12 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||||
latestLink: "<a href=\"/\">" + (I18n.t("topic.view_latest_topics")) + "</a>"
|
latestLink: "<a href=\"/\">" + (I18n.t("topic.view_latest_topics")) + "</a>"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
var category = this.get('controller.content.category');
|
var category = this.get('controller.content.category');
|
||||||
|
|
||||||
|
if(Em.get(category, 'id') === Discourse.Site.currentProp("uncategorized_category_id")) {
|
||||||
|
category = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (category) {
|
if (category) {
|
||||||
opts.catLink = Discourse.HTML.categoryLink(category);
|
opts.catLink = Discourse.HTML.categoryLink(category);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue