message at the bottom for uncategorized was all mangled, fallback to the old way it used to behave

This commit is contained in:
Sam 2013-11-18 11:42:40 +11:00
parent 1b19444b44
commit 805feca5f2
1 changed files with 5 additions and 1 deletions

View File

@ -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 {