* 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
17 lines
726 B
Text
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>
|