Revert "FIX: Don't show undefined in the footer text."

This reverts commit 7bf669ccf3.
This commit is contained in:
Sam 2014-12-04 09:33:21 +11:00
parent a8d2f4b6d0
commit 665ff94ff7

View file

@ -158,11 +158,11 @@ var controllerOpts = {
}.property('allLoaded', 'topics.length'),
footerEducation: function() {
if (!this.get('allLoaded') || this.get('topics.length') > 0 || !Discourse.User.current()) { return ""; }
if (!this.get('allLoaded') || this.get('topics.length') > 0 || !Discourse.User.current()) { return; }
var split = this.get('filter').split('/');
if (split[0] !== 'new' && split[0] !== 'unread' && split[0] !== 'starred') { return ""; }
if (split[0] !== 'new' && split[0] !== 'unread' && split[0] !== 'starred') { return; }
return I18n.t("topics.none.educate." + split[0], {
userPrefsUrl: Discourse.getURL("/users/") + (Discourse.User.currentProp("username_lower")) + "/preferences"