mirror of https://github.com/zulip/zulip.git
templates: Remove redundant {{#with this}} blocks.
By definition, `this` is already the current context. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
666c1e1d95
commit
a9d0054efa
|
@ -1,7 +1,6 @@
|
||||||
{{! Client-side Handlebars template for rendering messages. }}
|
{{! Client-side Handlebars template for rendering messages. }}
|
||||||
|
|
||||||
{{#each message_groups}}
|
{{#each message_groups}}
|
||||||
{{#with this}}
|
|
||||||
{{#if bookend_top}}
|
{{#if bookend_top}}
|
||||||
{{> bookend .}}
|
{{> bookend .}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -9,10 +8,7 @@
|
||||||
<div class="recipient_row" id="{{message_group_id}}">
|
<div class="recipient_row" id="{{message_group_id}}">
|
||||||
{{> recipient_row . use_match_properties=../use_match_properties}}
|
{{> recipient_row . use_match_properties=../use_match_properties}}
|
||||||
{{#each message_containers}}
|
{{#each message_containers}}
|
||||||
{{#with this}}
|
|
||||||
{{> single_message . use_match_properties=../../use_match_properties message_list_id=../../message_list_id is_archived=../is_archived}}
|
{{> single_message . use_match_properties=../../use_match_properties message_list_id=../../message_list_id is_archived=../is_archived}}
|
||||||
{{/with}}
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/with}}
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{{! Client-side Handlebars template for rendering subscriptions. }}
|
{{! Client-side Handlebars template for rendering subscriptions. }}
|
||||||
{{#with this}}
|
|
||||||
<div class="stream-row" data-stream-id="{{stream_id}}" data-stream-name="{{name}}">
|
<div class="stream-row" data-stream-id="{{stream_id}}" data-stream-name="{{name}}">
|
||||||
|
|
||||||
{{#if subscribed}}
|
{{#if subscribed}}
|
||||||
|
@ -70,4 +69,3 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/with}}
|
|
||||||
|
|
Loading…
Reference in New Issue