mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
27ce297b32
Getting the admin views into a more consistent / happy state
66 lines
3.1 KiB
Handlebars
66 lines
3.1 KiB
Handlebars
{{#contentFor 'bodyScripts'}}
|
|
<script src="/core/admin/assets/lib/codemirror/codemirror.js"></script>
|
|
<script src="/core/admin/assets/lib/codemirror/mode/markdown/markdown.js"></script>
|
|
<script src="/core/admin/assets/lib/showdown/showdown.js"></script>
|
|
<script src="/core/admin/assets/lib/showdown/extensions/ghostdown.js"></script>
|
|
<script src="/core/admin/assets/lib/shortcuts.js"></script>
|
|
<script src="/core/admin/assets/js/editor.js"></script>
|
|
<script src="/core/admin/assets/js/tagui.js"></script>
|
|
{{/contentFor}}
|
|
|
|
{{!< default}}
|
|
{{! TODO: Add "scrolling" class only when one of the panels is scrolled down by 5px or more }}
|
|
<header>
|
|
<section class="box entry-title">
|
|
<input type="text" id="entry-title"
|
|
placeholder="{{e "editor.entry_title.placeholder" "The Post Title Gets Inserted Up Here"}}"
|
|
value="{{title}}">
|
|
</section>
|
|
</header>
|
|
|
|
<section class="entry-markdown active">
|
|
<header class="floatingheader">
|
|
{{e "editor.headers.markdown.label" "Markdown"}}
|
|
<a class="markdown-help" href="#"><span class="hidden">What is Markdown?</span></a>
|
|
</header>
|
|
<section class="entry-markdown-content">
|
|
<textarea id="entry-markdown">{{content}}</textarea>
|
|
</section>
|
|
</section>{{!.entry-markdown}}
|
|
|
|
<section class="entry-preview">
|
|
<header class="floatingheader">
|
|
Preview <span class="entry-word-count">0 words</span>
|
|
</header>
|
|
<section class="entry-preview-content">
|
|
<div class="rendered-markdown">
|
|
{{!The content gets inserted in here, bitches!}}
|
|
</div>
|
|
</section>
|
|
</section>{{!.entry-preview}}
|
|
|
|
<footer id="publish-bar">
|
|
<nav>
|
|
<section id="entry-categories" href="#" class="left">
|
|
<label class="category-label" for="categories"><span class="hidden">Categories</span></label>
|
|
<div class="categories"></div>
|
|
<input type="hidden" class="category-holder" id="category-holder">
|
|
<input class="category-input" id="categories" type="text"
|
|
data-populate-hidden="#category-holder" data-input-behaviour="tag" data-populate=".categories" />
|
|
<ul class="suggestions overlay" data-populate=".categories"></ul>
|
|
</section>
|
|
<div class="right">
|
|
<button id="entry-settings" href="#" class="button-link"><span class="hidden">Settings</span></button>
|
|
<section id="entry-actions" class="splitbutton-save">
|
|
<button type="button" class="button-save" data-state="save-draft">Save Draft</button>
|
|
<a class="options up" href="#"><span class="hidden">Options</span></a>
|
|
<ul class="editor-options overlay" style="display:none">
|
|
<li data-title="publish-now" data-url=""><a href="#">Publish Now</a></li>
|
|
<li data-title="queue" data-url=""><a href="#">Add to Queue</a></li>
|
|
<li data-title="publish-on" data-url=""><a href="#">Publish on...</a></li>
|
|
<li data-title="save-draft" data-url="" class="active"><a href="#">Save Draft</a></li>
|
|
</ul>
|
|
</section>
|
|
</div>
|
|
</nav>
|
|
</footer> |