mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
fix daily view
This commit is contained in:
parent
1af39159e8
commit
19cf05b77f
2 changed files with 10 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
{{> beforeDay}}
|
||||
<h2 class="posts-day-heading">{{formatDate date "dddd, MMMM Do YYYY"}}</h2>
|
||||
|
||||
{{> singleDay data=context}}
|
||||
{{> postsListController context}}
|
||||
|
||||
{{> afterDay}}
|
||||
{{/each}}
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue