NEW: Don't show the filter on the homepage. Just show the Forum's name

This commit is contained in:
Robin Ward 2014-02-07 16:03:04 -05:00
parent 6bea09a82a
commit d769938660

View File

@ -25,7 +25,11 @@ function buildTopicRoute(filter) {
var period = filter.indexOf('/') > 0 ? filter.split('/')[1] : '',
filterText = I18n.t('filters.' + filter.replace('/', '.') + '.title', {count: 0});
if (filter === Discourse.Utilities.defaultHomepage()) {
Discourse.set('title', '');
} else {
Discourse.set('title', I18n.t('filters.with_topics', {filter: filterText}));
}
this.controllerFor('discoveryTopics').setProperties({ model: model, category: null, period: period });