From 4792af56823a051547c0249843eb08f16a26c588 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 21 Nov 2021 15:17:01 +0000 Subject: [PATCH] templates: Prevent dangling end tags. In cases where an opening tag is so long that we stretch it to 2+ lines of code, we should try to use block-style formatting in the template code. Unfortunately, we have lots of legacy code that violates this concept, so this is a timid fix. There are also legit use cases like textarea where we probably need to keep the ugly template syntax for things to render properly. --- static/templates/invite_user.hbs | 4 +- static/templates/navbar.hbs | 3 +- static/templates/right_sidebar.hbs | 4 +- .../stream_settings/stream_members.hbs | 3 +- static/templates/user_profile_modal.hbs | 3 +- templates/two_factor/_wizard_forms.html | 4 +- templates/zerver/development/dev_login.html | 36 +++++++++----- templates/zerver/for-open-source.html | 3 +- tools/lib/template_parser.py | 47 +++++++++++++++++++ 9 files changed, 87 insertions(+), 20 deletions(-) diff --git a/static/templates/invite_user.hbs b/static/templates/invite_user.hbs index e7a952985c..ead3b9ad9e 100644 --- a/static/templates/invite_user.hbs +++ b/static/templates/invite_user.hbs @@ -68,7 +68,9 @@ diff --git a/static/templates/navbar.hbs b/static/templates/navbar.hbs index 8cf1ad2eba..1a7eb12d0c 100644 --- a/static/templates/navbar.hbs +++ b/static/templates/navbar.hbs @@ -21,7 +21,8 @@
+ autocomplete="off" aria-label="{{t 'Search' }}" title="{{t 'Search' }} (/)"> +
diff --git a/static/templates/right_sidebar.hbs b/static/templates/right_sidebar.hbs index 93d8e901e9..d9aa6e7b3f 100644 --- a/static/templates/right_sidebar.hbs +++ b/static/templates/right_sidebar.hbs @@ -3,7 +3,9 @@
+ id='userlist-title' data-tippy-content="{{t 'Search people' }} (w)"> + {{t 'USERS' }} +