2012-12-13 17:06:13 +11:00
|
|
|
<template name="posts_list">
|
|
|
|
<div class="posts grid list">
|
|
|
|
{{#each posts}}
|
|
|
|
{{> post_item}}
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
{{#if postsReady}}
|
|
|
|
<div class="grid more-button {{#if allPostsLoaded}} hidden {{/if}}">
|
2013-11-04 18:45:03 +01:00
|
|
|
<a class="more-link" href="#">{{i18n "Load more"}}</a>
|
2012-12-13 17:06:13 +11:00
|
|
|
</div>
|
|
|
|
{{else}}
|
2013-11-04 18:45:03 +01:00
|
|
|
<div>{{i18n "Loading..."}}</div>
|
2012-12-13 17:06:13 +11:00
|
|
|
{{/if}}
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- and the various pages that use the above template -->
|
|
|
|
<!-- XXX: makes me want to be able to set a context from the router... -->
|
|
|
|
<template name="posts_top">
|
|
|
|
{{> posts_list topPostsHandle}}
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="posts_new">
|
|
|
|
{{> posts_list newPostsHandle}}
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="posts_best">
|
|
|
|
{{> posts_list bestPostsHandle}}
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template name="posts_pending">
|
|
|
|
{{> posts_list pendingPostsHandle}}
|
2013-04-06 14:50:23 +09:00
|
|
|
</template>
|