2015-04-20 13:57:37 +09:00
|
|
|
Telescope.config.viewsMenu.push({
|
2015-01-08 16:01:51 +09:00
|
|
|
route: 'postsSingleDayDefault',
|
2015-02-04 15:23:22 +09:00
|
|
|
label: 'singleday',
|
2014-12-15 09:46:51 +09:00
|
|
|
description: 'posts_of_a_single_day'
|
2014-12-08 11:15:20 +09:00
|
|
|
});
|
|
|
|
|
2015-01-22 09:19:52 +09:00
|
|
|
viewParameters.singleday = function (terms) {
|
2014-12-08 11:15:20 +09:00
|
|
|
return {
|
|
|
|
find: {
|
|
|
|
postedAt: {
|
2015-01-19 00:48:17 -08:00
|
|
|
$gte: terms.after,
|
2014-12-08 11:15:20 +09:00
|
|
|
$lt: terms.before
|
|
|
|
}
|
|
|
|
},
|
|
|
|
options: {
|
2015-01-08 16:01:51 +09:00
|
|
|
sort: {sticky: -1, score: -1}
|
2014-12-08 11:15:20 +09:00
|
|
|
}
|
|
|
|
};
|
2015-01-19 00:48:17 -08:00
|
|
|
};
|
2014-12-08 11:15:20 +09:00
|
|
|
|
2015-01-08 16:01:51 +09:00
|
|
|
getDateURL = function(moment){
|
2015-01-19 00:48:17 -08:00
|
|
|
return Router.path('postsSingleDay', {
|
2014-12-08 11:15:20 +09:00
|
|
|
year: moment.year(),
|
|
|
|
month: moment.month() + 1,
|
|
|
|
day: moment.date()
|
|
|
|
});
|
2015-04-20 13:57:37 +09:00
|
|
|
};
|