2023-02-09 22:43:25 +01:00
|
|
|
{{! Client-side Handlebars template for viewing message edit history. }}
|
2017-02-20 02:37:58 +01:00
|
|
|
|
|
|
|
{{#each edited_messages}}
|
2024-09-30 06:56:15 +02:00
|
|
|
<div class="message-edit-message-row overlay-message-row" data-message-edit-history-id="{{timestamp}}">
|
2024-09-30 06:33:50 +02:00
|
|
|
<div class="message-edit-message-info-box overlay-message-info-box" tabindex="0">
|
2024-03-01 15:05:41 +01:00
|
|
|
{{#if is_stream }}
|
|
|
|
<div class="message_header message_header_stream">
|
|
|
|
<div class="message-header-contents" style="background: {{recipient_bar_color}};">
|
|
|
|
<div class="message_label_clickable stream_label">
|
|
|
|
<span class="private_message_header_name">{{ edited_by_notice }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="recipient_row_date" title="{{t 'Last modified'}}">{{t "{edited_at_time}" }}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="message_header message_header_private_message">
|
|
|
|
<div class="message-header-contents">
|
|
|
|
<div class="message_label_clickable stream_label">
|
|
|
|
<span class="private_message_header_name">{{ edited_by_notice }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="recipient_row_date" title="{{t 'Last modified'}}">{{t "{edited_at_time}" }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class="message_row{{^is_stream}} private-message{{/is_stream}}" role="listitem">
|
|
|
|
<div class="messagebox">
|
|
|
|
<div class="messagebox-content">
|
|
|
|
{{#if topic_edited}}
|
|
|
|
<div class="message_content message_edit_history_content">
|
|
|
|
<p>Topic: <span class="highlight_text_inserted">{{ new_topic }}</span>
|
|
|
|
<span class="highlight_text_deleted">{{ prev_topic}}</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if stream_changed}}
|
|
|
|
<div class="message_content message_edit_history_content">
|
|
|
|
<p>Stream: <span class="highlight_text_inserted">{{ new_stream }}</span>
|
|
|
|
<span class="highlight_text_deleted">{{ prev_stream }}</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{#if body_to_render}}
|
|
|
|
<div class="message_content rendered_markdown message_edit_history_content">
|
|
|
|
{{ rendered_markdown body_to_render}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-20 02:37:58 +01:00
|
|
|
</div>
|
|
|
|
{{/each}}
|
2024-03-01 15:05:41 +01:00
|
|
|
|