mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This commit implements the frontend of migrating the `allow_edit_history` setting to `message_edit_history_visibility`. This allows organizations, to have an intermediate setting to view only the "Moves" history of the messages. Fixes #21398. Co-authored-by: Shlok Patel <shlokcpatel2001@gmail.com> Co-authored-by: Tim Abbott <tabbott@zulip.com>
23 lines
1006 B
Handlebars
23 lines
1006 B
Handlebars
<div>
|
|
{{#if realm_message_edit_history_is_visible}}
|
|
{{#tr}}
|
|
The following <z-link>uploaded files</z-link> are no longer attached to any messages. They can still be accessed from this message's edit history. Would you like to delete them entirely?
|
|
{{#*inline "z-link"}}<a class="uploaded_files_settings_link" href="/#settings/uploaded-files">{{> @partial-block}}</a>{{/inline}}
|
|
{{/tr}}
|
|
{{else}}
|
|
{{#tr}}
|
|
The following <z-link>uploaded files</z-link> are no longer attached to any messages. Would you like to delete them entirely?
|
|
{{#*inline "z-link"}}<a class="uploaded_files_settings_link" href="/#settings/uploaded-files">{{> @partial-block}}</a>{{/inline}}
|
|
{{/tr}}
|
|
{{/if}}
|
|
</div>
|
|
<p>
|
|
<ul>
|
|
{{#each attachments_list}}
|
|
<li>
|
|
<a href="/user_uploads/{{this.path_id}}" rel="noopener noreferrer" target="_blank">{{this.name}}</a>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</p>
|