This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/selected-posts.hbs
2018-07-20 16:37:43 -04:00

32 lines
1.0 KiB
Handlebars

<p>{{count-i18n key="topic.multi_select.description" count=selectedPostsCount}}</p>
{{#if canSelectAll}}
<p><a class="select-all" href {{action "selectAll"}}>{{i18n 'topic.multi_select.select_all'}}</a></p>
{{/if}}
{{#if canDeselectAll}}
<p><a href {{action "deselectAll"}}>{{i18n 'topic.multi_select.deselect_all'}}</a></p>
{{/if}}
{{#if canDeleteSelected}}
{{d-button action="deleteSelected" icon="trash-o" label="topic.multi_select.delete" class="btn-danger"}}
{{/if}}
{{#if canSplitTopic}}
{{d-button action="splitTopic" icon="sign-out" label="topic.split_topic.action"}}
{{/if}}
{{#if canMergeTopic}}
{{d-button action="mergeTopic" icon="sign-out" label="topic.merge_topic.action"}}
{{/if}}
{{#if canChangeOwner}}
{{d-button action="changeOwner" icon="user" label="topic.change_owner.action"}}
{{/if}}
{{#if canMergePosts}}
{{d-button action="mergePosts" icon="arrows-v" label="topic.merge_posts.action"}}
{{/if}}
<p class='cancel'><a href {{action "toggleMultiSelect"}}>{{i18n 'topic.multi_select.cancel'}}</a></p>