mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
templates: Replace templates.render with require calls.
This removes an unnecessary layer of indirection and allows webpack to catch filename mistakes. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
706f13b671
commit
db0b33842c
@@ -1,3 +1,5 @@
|
||||
var render_admin_tab = require('../templates/admin_tab.hbs');
|
||||
|
||||
var admin = (function () {
|
||||
|
||||
var exports = {};
|
||||
@@ -86,7 +88,7 @@ exports.build_page = function () {
|
||||
options.realm_night_logo_url = options.realm_logo_url;
|
||||
}
|
||||
|
||||
var rendered_admin_tab = templates.render('admin_tab', options);
|
||||
var rendered_admin_tab = render_admin_tab(options);
|
||||
$("#settings_content .organization-box").html(rendered_admin_tab);
|
||||
$("#settings_content .alert").removeClass("show");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user