fix daily view

This commit is contained in:
Sacha Greif 2015-05-02 14:06:22 +09:00
parent 1af39159e8
commit 19cf05b77f
2 changed files with 10 additions and 3 deletions

View file

@ -4,7 +4,7 @@
{{> beforeDay}}
<h2 class="posts-day-heading">{{formatDate date "dddd, MMMM Do YYYY"}}</h2>
{{> singleDay data=context}}
{{> postsListController context}}
{{> afterDay}}
{{/each}}

View file

@ -14,8 +14,15 @@ Meteor.startup(function () {
return daysArray;
},
context: function () {
var context = this;
context.showDateNav = false;
var context = {
terms: {
view: "singleday",
date: this.date,
after: moment(this.date).startOf('day').toDate(),
before: moment(this.date).endOf('day').toDate(),
showDateNav: false
}
};
return context;
},
loadMoreDaysUrl: function () {