docbrown/app/views/moderations/modals/_unpublish_all_posts.html.erb
Anna Buianova 9d755a9d2f
Save list of previously-published articles when user is subject to an "un-publish all" action (#18535)
* Moved logging and deleting comments to Moderator::UnpublishAllArticlesWorker

* Added logging for admin action (unpublish_all_articles)

* Extracted code from UnpublishAllArticlesWorker to the service

* Make it possible to add a note while unpublishing all via admin action

* Added ability to add notes for unpublishing all from moderator action panel

* Fixed setting slug for the AuditLog on unpublishing + spec
2022-10-06 14:17:20 +03:00

17 lines
726 B
Text

<div id="unpublish-all-posts" class="hidden">
<p>
<%= t("views.moderations.actions.unpublish_all.modal_text1", username: @article.username) %>
</p>
<p class="mt-2">
<%= t("views.moderations.actions.unpublish_all.modal_text2", username: @article.username) %>
</p>
<p class="mt-2"><%= label_tag "note[content]", "Note:" %><%= text_area_tag "note[content]", "", class: "crayons-textfield note_content", placeholder: "Note text" %></p>
<div class="mt-4">
<button
id="unpublish-all-posts-submit-btn"
class="c-btn c-btn--destructive c-btn--primary"
data-user-id="<%= @article.user.id %>">
<%= t("views.moderations.actions.unpublish_all.modal_button") %>
</button>
</div>
</div>