Vulcan/client/views/posts/posts_digest.html
Anthony Mayer 23b72b9cb8 Switching from manually generating urls to using IronRouter functions.
Using {{pathFor}}, path(), and url() where possible. Passing in path
to Meteor.absoluteUrl() where the IronRouter functions didn't make sense.
Also deleting some random unused code.
2014-12-03 00:06:00 -08:00

28 lines
749 B
HTML

<template name="posts_digest">
<div class="grid">
<div class="grid-block">
{{_ "the_top_5_posts_of_each_day"}} |
{{#if showPreviousDate}}
<a href="{{previousDateURL}}" class="prev-link">{{_ "previous_day"}}</a> |
{{/if}}
{{currentDate}} |
{{#if showNextDate}}
<a href="{{nextDateURL}}" class="next-link">{{_ "next_day"}}</a>
{{/if}}
</div>
</div>
{{> UI.dynamic template=postsListIncoming data=incoming}}
{{#if hasPosts}}
<div class="posts grid list">
{{#each posts}}
{{> UI.dynamic template=post_item}}
{{/each}}
</div>
{{else}}
<div class="grid-small grid-block dialog">
<p>{{_ "sorry_no_posts_for"}} {{currentDate}}.</p>
</div>
{{/if}}
</template>