Ghost/core/client/app/templates/editor-save-button.hbs
Matt Enlow ee0c32dfc9 Ember 1.11.1
- remove `bind-attr` all over the place
2015-04-05 21:13:30 -06:00

20 lines
1.1 KiB
Handlebars

<button type="button" {{action "save"}} class="btn btn-sm js-publish-button {{if view.isDangerous 'btn-red' 'btn-blue'}}">{{view.saveText}}</button>
{{#gh-dropdown-button dropdownName="post-save-menu" classNameBindings=":btn :btn-sm view.isDangerous:btn-red:btn-blue btnopen:active :dropdown-toggle :up"}}
<i class="options"></i>
<span class="sr-only">Toggle Settings Menu</span>
{{/gh-dropdown-button}}
{{#gh-dropdown name="post-save-menu" closeOnClick="true" tagName="div" classNames="dropdown editor-options"}}
<ul class="dropdown-menu dropdown-triangle-bottom-right">
<li class="post-save-publish {{if willPublish 'active'}}">
<a {{action "setSaveType" "publish"}} href="#">{{view.publishText}}</a>
</li>
<li class="post-save-draft {{unless willPublish 'active'}}">
<a {{action "setSaveType" "draft"}} href="#">{{view.draftText}}</a>
</li>
<li class="divider delete"></li>
<li class="delete">
<a {{action "openModal" "delete-post" this}} href="#">{{view.deleteText}}</a>
</li>
</ul>
{{/gh-dropdown}}