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/components/selected-posts.hbs
Joffrey JAFFEUX 61a2c3650d
DEV: enforces ember-template-lint: no-partial (#9173)
selected-posts parial is kept and calling the new component to prevent errors with users who would have rewritten topic.hbs

dashboard-problems and version-checks seem less risky and have only been converted to components
2020-03-11 15:30:14 +01:00

62 lines
1.1 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="far-trash-alt"
label="topic.multi_select.delete"
class="btn-danger"
}}
{{/if}}
{{#if canMergeTopic}}
{{d-button
action=(route-action "moveToTopic")
icon="sign-out-alt"
label="topic.move_to.action"
class="btn-primary move-to-topic"
}}
{{/if}}
{{#if canChangeOwner}}
{{d-button
action=(route-action "changeOwner")
icon="user"
label="topic.change_owner.action"
class="btn-primary"
}}
{{/if}}
{{#if canMergePosts}}
{{d-button
action=mergePosts
icon="arrows-v"
label="topic.merge_posts.action"
class="btn-primary"
}}
{{/if}}
<p class="cancel">
<a href {{action toggleMultiSelect}}>
{{i18n "topic.multi_select.cancel"}}
</a>
</p>