2014-09-15 04:40:24 +04:00
|
|
|
|
<div class="editor-cover" {{action "closeRightOutlet"}}></div>
|
2014-09-23 12:47:35 +04:00
|
|
|
|
{{#gh-tabs-manager selected="showSubview" id="entry-controls" class="right-outlet"}}
|
|
|
|
|
<div id="entry-controls" class="right-outlet">
|
2014-09-15 04:40:24 +04:00
|
|
|
|
<div {{bind-attr class="isViewingSubview:outlet-pane-out-left:outlet-pane-in :post-settings-menu :outlet-pane"}}>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="post-settings-header">
|
|
|
|
|
<h4>Post Settings</h4>
|
2014-09-15 04:40:24 +04:00
|
|
|
|
<button class="close icon-x post-settings-header-action" {{action "closeRightOutlet"}}><span class="hidden">Close</span></button>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
|
|
|
|
<div class="post-settings-content">
|
2014-09-16 02:46:40 +04:00
|
|
|
|
{{gh-uploader uploaded="setCoverImage" canceled="clearCoverImage" image=image tagName="section"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<form>
|
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="url">Post URL</label>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<span class="input-icon icon-link">
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{gh-input class="post-setting-slug" id="url" value=slugValue name="post-setting-slug" focus-out="updateSlug" placeholder=slugPlaceholder selectOnClick="true" stopEnterKeyDownPropagation="true"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2014-08-16 01:18:36 +04:00
|
|
|
|
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="post-setting-date">Publish Date</label>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<span class="input-icon icon-calendar">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
{{gh-input class="post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-09-28 14:21:09 +04:00
|
|
|
|
{{#unless session.user.isAuthor}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="form-group for-select">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="author-list">Author</label>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<span class="input-icon icon-user">
|
2014-09-17 14:41:34 +04:00
|
|
|
|
<span class="gh-select" tabindex="0">
|
2014-08-16 01:18:36 +04:00
|
|
|
|
{{view Ember.Select
|
2014-09-04 17:56:07 +04:00
|
|
|
|
name="post-setting-author"
|
2014-10-16 19:45:44 +04:00
|
|
|
|
id="author-list"
|
2014-09-04 17:56:07 +04:00
|
|
|
|
content=authors
|
|
|
|
|
optionValuePath="content.id"
|
|
|
|
|
optionLabelPath="content.name"
|
|
|
|
|
selection=selectedAuthor}}
|
|
|
|
|
</span>
|
2014-08-16 01:18:36 +04:00
|
|
|
|
</span>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
2014-09-28 14:21:09 +04:00
|
|
|
|
{{/unless}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
|
|
|
|
|
<ul class="nav-list nav-list-block">
|
2014-09-15 04:40:24 +04:00
|
|
|
|
{{#gh-tab tagName="li" classNames="nav-list-item"}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<a href="#">
|
2014-09-15 04:40:24 +04:00
|
|
|
|
<b>Meta Data</b>
|
|
|
|
|
<span>Extra content for SEO and social media.</span>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</a>
|
2014-09-15 04:40:24 +04:00
|
|
|
|
{{/gh-tab}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</ul>
|
2014-09-23 12:47:35 +04:00
|
|
|
|
|
|
|
|
|
<div class="form-group for-checkbox">
|
|
|
|
|
<label class="checkbox" for="static-page" {{action "togglePage" bubbles="false"}}>
|
|
|
|
|
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
|
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
|
<p>Turn this post into a static page</p>
|
|
|
|
|
</label>
|
|
|
|
|
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label class="checkbox" for="featured" {{action "toggleFeatured" bubbles="false"}}>
|
2014-09-23 12:47:35 +04:00
|
|
|
|
{{input type="checkbox" name="featured" id="featured" class="post-setting-featured" checked=featured}}
|
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
|
<p>Feature this post</p>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</form>
|
|
|
|
|
</div><!-- .post-settings-content -->
|
2014-09-19 03:42:07 +04:00
|
|
|
|
</div><!-- .post-settings-menu -->
|
2014-09-15 04:40:24 +04:00
|
|
|
|
<div {{bind-attr class="isViewingSubview:outlet-pane-in:outlet-pane-out-right :post-settings-menu :outlet-pane"}}>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{#gh-tab-pane}}
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="post-settings-header subview">
|
2014-09-15 04:40:24 +04:00
|
|
|
|
<button {{action "closeSubview"}} class="back icon-chevron-left post-settings-header-action"><span class="hidden">Back</span></button>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<h4>Meta Data</h4>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-09-15 04:40:24 +04:00
|
|
|
|
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="post-settings-content">
|
2014-09-21 22:56:30 +04:00
|
|
|
|
<form>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="meta-title">Meta Title</label>
|
|
|
|
|
{{gh-input class="post-setting-meta-title" id="meta-title" value=metaTitleScratch name="post-setting-meta-title" focus-out="setMetaTitle" stopEnterKeyDownPropagation="true"}}
|
2014-09-21 22:56:30 +04:00
|
|
|
|
<p>Recommended: <b>70</b> characters. You’ve used {{gh-count-down-characters metaTitleScratch 70}}</p>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2014-10-16 19:45:44 +04:00
|
|
|
|
<label for="meta-description">Meta Description</label>
|
|
|
|
|
{{gh-textarea class="post-setting-meta-description" id="meta-description" value=metaDescriptionScratch name="post-setting-meta-description" focus-out="setMetaDescription" stopEnterKeyDownPropagation="true"}}
|
2014-09-21 22:56:30 +04:00
|
|
|
|
<p>Recommended: <b>156</b> characters. You’ve used {{gh-count-down-characters metaDescriptionScratch 156}}</p>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label>Search Engine Result Preview</label>
|
|
|
|
|
<div class="seo-preview">
|
2014-09-19 03:42:07 +04:00
|
|
|
|
<div class="seo-preview-title">{{seoTitle}}</div>
|
2014-10-17 20:18:52 +04:00
|
|
|
|
<div class="seo-preview-link">{{seoURL}}</div>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
<div class="seo-preview-description">{{seoDescription}}</div>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-09-21 22:56:30 +04:00
|
|
|
|
</form>
|
2014-09-04 17:56:07 +04:00
|
|
|
|
</div>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{/gh-tab-pane}}
|
|
|
|
|
</div>
|
2014-09-15 04:40:24 +04:00
|
|
|
|
</div>
|
2014-09-19 03:42:07 +04:00
|
|
|
|
{{/gh-tabs-manager}}
|