mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
8c3970c9ba
closes #2906 - add a utility function to add classnames to targets, retrofitted from clientold to accommodate `Ember.run.bind` - create a content-preview view that tracks its scrolling - add a scroll handler to the existing PostsListView - The `posts/post` template now takes its HTML from the post model instead of using the editor's markdown component
21 lines
510 B
Handlebars
21 lines
510 B
Handlebars
{{#if title}}
|
|
|
|
{{partial "floating-header"}}
|
|
|
|
{{#view "content-preview-content-view" tagName="section"}}
|
|
<div class="wrapper">
|
|
<h1>{{{title}}}</h1>
|
|
{{{html}}}
|
|
</div>
|
|
{{/view}}
|
|
|
|
{{else}}
|
|
|
|
<div class="no-posts-box">
|
|
<div class="no-posts">
|
|
<h3>You Haven't Written Any Posts Yet!</h3>
|
|
{{#link-to "new"}}<button class="button-add large" title="New Post">Write a new Post</button>{{/link-to}}
|
|
</div>
|
|
</div>
|
|
|
|
{{/if}}
|