Files
zulip/static/templates/message_group.handlebars
Jason Michalski a9235a74f4 Split the group merging logic form the DOM update logic
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)
2014-03-14 20:48:59 -04:00

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}}