mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
45 lines
1.5 KiB
Handlebars
45 lines
1.5 KiB
Handlebars
<ul class="gh-posts-context-menu dropdown-menu dropdown-triangle-top-left">
|
|
|
|
{{#if this.canUnpublishSelection}}
|
|
<li>
|
|
<button class="mr2" type="button" {{on "click" this.unpublishPosts}}>
|
|
<span>{{svg-jar "undo"}}Unpublish</span>
|
|
</button>
|
|
</li>
|
|
{{/if}}
|
|
{{#if this.canFeatureSelection}}
|
|
{{#if this.shouldFeatureSelection }}
|
|
<li>
|
|
<button class="mr2" type="button" {{on "click" this.featurePosts}}>
|
|
<span>{{svg-jar "star" class="mb1"}}Feature</span>
|
|
</button>
|
|
</li>
|
|
{{else}}
|
|
<li>
|
|
<button class="mr2" type="button" {{on "click" this.unfeaturePosts}}>
|
|
<span>{{svg-jar "star" class="mb1"}}Unfeature</span>
|
|
</button>
|
|
</li>
|
|
{{/if}}
|
|
{{/if}}
|
|
<li>
|
|
<button class="mr2" type="button" {{on "click" this.addTagToPosts}}>
|
|
<span>{{svg-jar "tag"}}Add a tag</span>
|
|
</button>
|
|
</li>
|
|
{{#if this.membersUtils.isMembersEnabled}}
|
|
<li>
|
|
<button class="mr2" type="button" {{on "click" this.editPostsAccess}}>
|
|
<span>{{svg-jar "lock"}}Change access</span>
|
|
</button>
|
|
</li>
|
|
{{/if}}
|
|
{{#if this.session.user.isAdmin}}
|
|
<li>
|
|
<button class="mr2" type="button" {{on "click" this.deletePosts}}>
|
|
<span class="red">{{svg-jar "trash"}}Delete</span>
|
|
</button>
|
|
</li>
|
|
{{/if}}
|
|
</ul>
|