mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00

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.
28 lines
749 B
HTML
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>
|