mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 22:01:49 +03:00
f0283ddb5a
- Moved `new` route into `editor` resource (`editor.new`) - Moved the current editor controller, view, and route to `editor.edit` - Added `editor.index`, which automatically transitions into `editor.new` - Moved controllers, views, templates, and routes to match new router config. Also changed links to `editor` into `editor.new` and `editor.edit` as appropriate.
22 lines
517 B
Handlebars
22 lines
517 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 "editor.new"}}<button class="button-add large" title="New Post">Write a new Post</button>{{/link-to}}
|
|
</div>
|
|
</div>
|
|
|
|
{{/if}}
|