2014-08-05 13:51:39 +04:00
|
|
|
<div class="page-content">
|
2015-04-01 19:01:38 +03:00
|
|
|
<section class="content-list js-content-list {{if postListFocused 'keyboard-focused'}}">
|
2014-10-27 23:29:27 +03:00
|
|
|
{{#view "paginated-scroll-box" tagName="section" classNames="content-list-content js-content-scrollbox"}}
|
2014-08-05 13:51:39 +04:00
|
|
|
<ol class="posts-list">
|
2015-01-11 19:46:43 +03:00
|
|
|
{{#each post in controller itemController="posts/post" itemView="post-item-view" itemTagName="li"}}
|
2015-04-01 19:01:38 +03:00
|
|
|
{{#link-to "posts.post" post.model class="permalink" alternateActive=view.active title="Edit this post"}}
|
2014-12-30 05:11:24 +03:00
|
|
|
<h3 class="entry-title">{{post.model.title}}</h3>
|
2015-01-01 05:06:05 +03:00
|
|
|
<section class="entry-meta">
|
2015-04-01 19:01:38 +03:00
|
|
|
<span class="avatar" style={{post.authorAvatarBackground}}>
|
|
|
|
<img src="{{post.authorAvatar}}" title="{{post.authorName}}">
|
2015-01-28 19:30:03 +03:00
|
|
|
</span>
|
2014-12-16 19:55:45 +03:00
|
|
|
<span class="author">{{post.authorName}}</span>
|
2015-01-01 05:06:05 +03:00
|
|
|
<span class="status">
|
|
|
|
{{#if post.isPublished}}
|
2014-12-30 05:11:24 +03:00
|
|
|
{{#if post.model.page}}
|
2015-01-01 05:06:05 +03:00
|
|
|
<span class="page">Page</span>
|
|
|
|
{{else}}
|
2015-04-01 19:01:38 +03:00
|
|
|
<time datetime="{{post.model.published_at}}" class="date published">
|
2014-12-30 05:11:24 +03:00
|
|
|
Published {{gh-format-timeago post.model.published_at}}
|
2015-01-01 05:06:05 +03:00
|
|
|
</time>
|
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
|
|
|
<span class="draft">Draft</span>
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
{{/link-to}}
|
2014-08-05 13:51:39 +04:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
|
|
|
{{/view}}
|
|
|
|
</section>
|
2015-04-01 19:01:38 +03:00
|
|
|
<section class="content-preview js-content-preview {{if postContentFocused 'keyboard-focused'}}">
|
2014-08-05 13:51:39 +04:00
|
|
|
{{outlet}}
|
|
|
|
</section>
|
2014-09-10 05:22:11 +04:00
|
|
|
</div>
|