Ghost/ghost/admin/app/templates/posts.hbs
Austin Burdine c5535e0a1b update Ember to 1.12.1/ember-data to 1.0.0-beta.18
No issue
- fixed "{{#each}}" helper in templates to use block syntax
- fixed deprecated ember.controller getter/setter function to use new syntax
- removed unnecessary pass-protect route view
2015-06-02 22:26:16 -06:00

36 lines
1.8 KiB
Handlebars

<div class="page-content">
<section class="content-list js-content-list {{if postListFocused 'keyboard-focused'}}">
{{#view "paginated-scroll-box" tagName="section" classNames="content-list-content js-content-scrollbox"}}
<ol class="posts-list">
{{#each controller itemController="posts/post" itemView="post-item-view" itemTagName="li" as |post|}}
{{#link-to "posts.post" post.model class="permalink" alternateActive=view.active title="Edit this post"}}
<h3 class="entry-title">{{post.model.title}}</h3>
<section class="entry-meta">
<span class="avatar" style={{post.authorAvatarBackground}}>
<img src="{{post.authorAvatar}}" title="{{post.authorName}}">
</span>
<span class="author">{{post.authorName}}</span>
<span class="status">
{{#if post.isPublished}}
{{#if post.model.page}}
<span class="page">Page</span>
{{else}}
<time datetime="{{post.model.published_at}}" class="date published">
Published {{gh-format-timeago post.model.published_at}}
</time>
{{/if}}
{{else}}
<span class="draft">Draft</span>
{{/if}}
</span>
</section>
{{/link-to}}
{{/each}}
</ol>
{{/view}}
</section>
<section class="content-preview js-content-preview {{if postContentFocused 'keyboard-focused'}}">
{{outlet}}
</section>
</div>