Files
zulip/web/templates/inbox_view/inbox_stream_container.hbs
Aman Agrawal 57c1c56028 inbox: Migrate data objects to use Map.
Since Map store values in insertion order, it will be required
to show rows sorted by time.

This is not pretty but can be improved when
https://github.com/handlebars-lang/handlebars.js/pull/1996
is released.
2023-10-05 15:52:02 -07:00

15 lines
496 B
Handlebars

{{#each topics_dict as |key_value_list _index|}}
<div id="{{key_value_list.[0]}}">
{{#each ../streams_dict as |stream_key_value _stream_index|}}
{{#if (eq stream_key_value.[0] key_value_list.[0])}}
{{> inbox_row stream_key_value.[1]}}
{{/if}}
{{/each}}
<div class="inbox-topic-container">
{{#each key_value_list.[1]}}
{{>inbox_row this.[1]}}
{{/each}}
</div>
</div>
{{/each}}