templates: Make sure users know deletion is for everyone.

Implements a proposal I suggested in #16426.
This commit is contained in:
Tim Abbott 2020-10-29 17:16:22 -07:00
parent 5bfafae764
commit 5fb667cf9e
2 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,14 @@
<div id="delete_topic_modal" class="modal modal-bg hide fade new-style" tabindex="-1" role="dialog" aria-labelledby="delete_topic_modal_label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">&times;</span></button>
<h3 id="delete_topic_modal_label">{{t "Delete topic" }} </h3>
<h3 id="delete_topic_modal_label">
{{t "Delete topic" }}
{{> ./help_link_widget link="/help/delete-a-topic" }}
</h3>
</div>
<div class="modal-body">
<p>{{#tr this}}Are you sure you want to delete all messages in <b>__topic_name__</b>?{{/tr}}</p>
<p>{{t "We recommend against deleting topics unless needed for security reasons or managing abuse. Deleted messages can be confusing for users who may later visit the topic via notifications." }}</p>
<p>{{#tr this}}Are you sure you want to permanently delete all messages in <b>__topic_name__</b>?{{/tr}}</p>
<p>{{t "Deleting a topic will immediately remove it and its messages for everyone. Other users may find this confusing, especially if they had received an email or push notification related to the deleted messages." }}</p>
</div>
<div class="modal-footer">
<button class="button" data-dismiss="modal">{{t "Cancel" }}</button>

View File

@ -10,7 +10,8 @@
</div>
<div class="modal-body">
<div class="content">
<p><strong>{{ _("Are you sure you want to delete this message?") }}</strong></p>
<p><strong>{{ _("Are you sure you want to permanently delete this message?") }}</strong></p>
<p>{{ _("Deleting a message removes it for everyone.") }}</p>
</div>
<div id="delete-message-error"></div>
</div>