mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:17:30 +08:00
NEW: Don't show the filter on the homepage. Just show the Forum's name
This commit is contained in:
parent
6bea09a82a
commit
d769938660
|
@ -25,7 +25,11 @@ function buildTopicRoute(filter) {
|
|||
var period = filter.indexOf('/') > 0 ? filter.split('/')[1] : '',
|
||||
filterText = I18n.t('filters.' + filter.replace('/', '.') + '.title', {count: 0});
|
||||
|
||||
Discourse.set('title', I18n.t('filters.with_topics', {filter: filterText}));
|
||||
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 });
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user