navbar: Migrate to handlebars.

This commit migrates the `navbar.html` Django template
to handlebars by creating a new file as `navbar.hbs`
within `/static/templates` which is then rendered
using `ui_init` module.

As a part of migration, we also remove the `search_pills_enabled`
and `embedded` parameters from the context attribute as they
are no longer needed now.

Fixes part of #18792.
This commit is contained in:
aryanshridhar
2021-06-30 19:50:43 +05:30
committed by Tim Abbott
parent 3294e8dbe0
commit c6828767fa
6 changed files with 29 additions and 17 deletions

View File

@@ -675,8 +675,6 @@ html_rules: List["Rule"] = [
# Social backend logos are dynamically loaded
"templates/zerver/accounts_home.html",
"templates/zerver/login.html",
# Probably just needs to be changed to display: none so the exclude works
"templates/zerver/app/navbar.html",
# Needs the width cleaned up; display: none is fine
"static/templates/settings/account_settings.hbs",
# background image property is dynamically generated