mirror of https://github.com/zulip/zulip.git
22 lines
1.1 KiB
Handlebars
22 lines
1.1 KiB
Handlebars
{{! Client-side Handlebars template for viewing message edit history. }}
|
|
|
|
{{#each edited_messages}}
|
|
{{#if show_date_row}}
|
|
<div class="date_row"><span>{{ display_date }}</span></div>
|
|
{{/if}}
|
|
<div class="messagebox-content">
|
|
<div class="message_top_line"><span class="message_time">{{ timestamp }}</span></div>
|
|
{{#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 class="message_author"><div class="author_details">{{ edited_by_notice }}</div></div>
|
|
</div>
|
|
<hr />
|
|
{{/each}}
|