templates: Rename admin-alias-list.handlebars.

Rename `admin-alias-list.handlebars` to
`admin-realm-domains-list.handlebars`.

Fixes: #3145.
This commit is contained in:
Harshit Bansal
2017-03-31 21:38:16 +00:00
committed by Tim Abbott
parent 885ec07192
commit 0605a9fb0f
4 changed files with 5 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ function render(template_name, args) {
global.write_handlebars_output("actions_popover_content", html); global.write_handlebars_output("actions_popover_content", html);
}()); }());
(function admin_alias_list() { (function admin_realm_domains_list() {
var html = "<table>"; var html = "<table>";
var args = { var args = {
realm_domain: { realm_domain: {
@@ -102,7 +102,7 @@ function render(template_name, args) {
allow_subdomains: true, allow_subdomains: true,
}, },
}; };
html += render("admin-alias-list", args); html += render("admin-realm-domains-list", args);
html += "</table>"; html += "</table>";
var button = $(html).find('.btn'); var button = $(html).find('.btn');
@@ -116,7 +116,7 @@ function render(template_name, args) {
assert.equal(subdomains_checkbox.prop('checked'), true); assert.equal(subdomains_checkbox.prop('checked'), true);
global.write_handlebars_output("admin-alias-list", html); global.write_handlebars_output("admin-realm-domains-list", html);
}()); }());
(function admin_default_streams_list() { (function admin_default_streams_list() {

View File

@@ -353,7 +353,7 @@ exports.populate_realm_domains = function (realm_domains) {
var realm_domains_table_body = $("#realm_domains_table tbody").expectOne(); var realm_domains_table_body = $("#realm_domains_table tbody").expectOne();
realm_domains_table_body.find("tr").remove(); realm_domains_table_body.find("tr").remove();
_.each(realm_domains, function (realm_domain) { _.each(realm_domains, function (realm_domain) {
realm_domains_table_body.append(templates.render("admin-alias-list", {realm_domain: realm_domain})); realm_domains_table_body.append(templates.render("admin-realm-domains-list", {realm_domain: realm_domain}));
}); });
}; };

View File

@@ -208,7 +208,7 @@ def check_handlebar_templates(templates):
'static/templates/subscription_settings.handlebars', 'static/templates/subscription_settings.handlebars',
'static/templates/user_sidebar_actions.handlebars', 'static/templates/user_sidebar_actions.handlebars',
'static/templates/settings/account-settings.handlebars', 'static/templates/settings/account-settings.handlebars',
'static/templates/settings/admin-alias-list.handlebars', 'static/templates/settings/admin-realm-domains-list.handlebars',
'static/templates/settings/admin_auth_methods_list.handlebars', 'static/templates/settings/admin_auth_methods_list.handlebars',
'static/templates/settings/alert-word-settings.handlebars', 'static/templates/settings/alert-word-settings.handlebars',
'static/templates/settings/attachment-item.handlebars', 'static/templates/settings/attachment-item.handlebars',