FEATURE: add a 14 days window to consider topics new

This commit is contained in:
Régis Hanol 2014-01-24 00:22:04 +01:00
parent 714a40313d
commit 01cd63fff7
2 changed files with 3 additions and 3 deletions

View File

@ -43,6 +43,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({
{ name: I18n.t('user.new_topic_duration.after_n_days', { count: 1 }), value: 60 * 24 },
{ name: I18n.t('user.new_topic_duration.after_n_days', { count: 2 }), value: 60 * 48 },
{ name: I18n.t('user.new_topic_duration.after_n_weeks', { count: 1 }), value: 7 * 60 * 24 },
{ name: I18n.t('user.new_topic_duration.after_n_weeks', { count: 2 }), value: 2 * 7 * 60 * 24 },
{ name: I18n.t('user.new_topic_duration.last_here'), value: -2 }],
saveButtonText: function() {
@ -52,8 +53,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({
actions: {
save: function() {
var self = this;
this.set('saving', true);
this.set('saved', false);
this.setProperties({ saving: true, saved: false });
// Cook the bio for preview
var model = this.get('model');

View File

@ -332,7 +332,7 @@ en:
other: "they were posted in the last {{count}} days"
after_n_weeks:
one: "they were posted in the last week"
other: "they were posted in the last {{count}} week"
other: "they were posted in the last {{count}} weeks"
auto_track_topics: "Automatically track topics I enter"
auto_track_options: