mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
The goal is to have a more data centric piece that can be unit tested. We also try to minimise the number of one off jQuery DOM updates and rerender handlebars fragments instead. This will prevent the message_group and DOM from drifting apart and not being able to rerender correctly. (imported from commit 03f09803f2bc0c3b8187f76f2cfe90be9f7512a3)
29 lines
627 B
Handlebars
29 lines
627 B
Handlebars
{{! Client-side Mustache template for rendering messages.}}
|
|
|
|
{{#each message_groups}}
|
|
{{#with this}}
|
|
|
|
{{#if show_date}}
|
|
<div class="date_row">{{{show_date}}}</div>
|
|
{{/if}}
|
|
|
|
{{#if bookend_top}}
|
|
{{partial "bookend"}}
|
|
{{/if}}
|
|
|
|
<div class="recipient_row" id="{{message_group_id}}">
|
|
{{partial "recipient_row" "use_match_properties" ../../use_match_properties}}
|
|
{{#each messages}}
|
|
{{#with this}}
|
|
{{partial "single_message" "use_match_properties" ../../../../use_match_properties "table_name" ../../../../table_name}}
|
|
{{/with}}
|
|
{{/each}}
|
|
</div>
|
|
|
|
{{#if bookend_bottom}}
|
|
{{partial "bookend"}}
|
|
{{/if}}
|
|
|
|
{{/with}}
|
|
{{/each}}
|