mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
added notice when digest has no posts
This commit is contained in:
parent
62a8c49e6c
commit
714522476c
2 changed files with 10 additions and 11 deletions
|
@ -10,14 +10,16 @@
|
|||
<a href="{{nextDateURL}}" class="next-link">Next Day</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="posts grid list">
|
||||
{{#if noPostsToday}}
|
||||
<p>Sorry, no posts for today.</p>
|
||||
{{else}}
|
||||
</div>
|
||||
{{#if hasPosts}}
|
||||
<div class="posts grid list">
|
||||
{{#each posts}}
|
||||
{{> post_item}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="grid-small grid-block dialog">
|
||||
<p>Sorry, no posts for today.</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
</template>
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
Template.posts_digest.helpers({
|
||||
hasPosts: function(){
|
||||
// return digestHandle && digestHandle.ready();
|
||||
},
|
||||
noPostsToday: function(){
|
||||
// return digestHandle && digestHandle.ready() && !findDigestPosts(moment(Session.get('currentDate'))).count();
|
||||
return !!this.posts.count();
|
||||
},
|
||||
currentDate: function(){
|
||||
var currentDate=moment(Session.get('currentDate'));
|
||||
|
|
Loading…
Add table
Reference in a new issue