2014-03-02 09:30:35 -05:00
|
|
|
<section class="content-view-container">
|
|
|
|
<section class="content-list js-content-list">
|
|
|
|
<header class="floatingheader">
|
|
|
|
<section class="content-filter">
|
|
|
|
<small>All Posts</small>
|
|
|
|
</section>
|
|
|
|
{{#link-to "new" class="button button-add" title="New Post"}}New Post{{/link-to}}
|
|
|
|
</header>
|
|
|
|
<section class="content-list-content">
|
|
|
|
<ol class="posts-list">
|
2014-03-02 15:12:06 -05:00
|
|
|
{{#each itemController="posts/post"}}
|
2014-03-02 09:30:35 -05:00
|
|
|
{{#view "post-item-view" tagName="li" post=this}} <!-- needed because of "active" class on li item -->
|
2014-03-02 15:12:06 -05:00
|
|
|
{{#link-to 'posts.post' this class="permalink" title="Edit this post"}}
|
2014-03-02 09:30:35 -05:00
|
|
|
<h3 class="entry-title">{{title}}</h3>
|
|
|
|
<section class="entry-meta">
|
|
|
|
<span class="status">
|
2014-03-03 15:18:10 -05:00
|
|
|
{{#if isDraft}}
|
|
|
|
<span class="draft">Draft</span>
|
|
|
|
{{/if}}
|
2014-03-02 09:30:35 -05:00
|
|
|
{{#if isPublished}}
|
|
|
|
<time datetime="{{unbound published_at}}" class="date published">
|
|
|
|
Published {{format-timeago published_at}}
|
|
|
|
</time>
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
{{/link-to}}
|
|
|
|
{{/view}}
|
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section class="content-preview js-content-preview">
|
|
|
|
{{outlet}}
|
|
|
|
</section>
|
|
|
|
</section>
|