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:
Anders Kaseorg 2024-11-19 10:28:10 -08:00 committed by Anders Kaseorg
parent 666c1e1d95
commit a9d0054efa
2 changed files with 9 additions and 15 deletions

View File

@ -1,7 +1,6 @@
{{! Client-side Handlebars template for rendering messages. }}
{{#each message_groups}}
{{#with this}}
{{#if bookend_top}}
{{> bookend .}}
{{/if}}
@ -9,10 +8,7 @@
<div class="recipient_row" id="{{message_group_id}}">
{{> recipient_row . use_match_properties=../use_match_properties}}
{{#each message_containers}}
{{#with this}}
{{> single_message . use_match_properties=../../use_match_properties message_list_id=../../message_list_id is_archived=../is_archived}}
{{/with}}
{{/each}}
</div>
{{/with}}
{{/each}}

View File

@ -1,5 +1,4 @@
{{! Client-side Handlebars template for rendering subscriptions. }}
{{#with this}}
<div class="stream-row" data-stream-id="{{stream_id}}" data-stream-name="{{name}}">
{{#if subscribed}}
@ -70,4 +69,3 @@
</div>
</div>
</div>
{{/with}}