mirror of https://github.com/zulip/zulip.git
Rename the zephyr template to the message template.
(imported from commit c15e2cc08d3604a82d90a96efa4f70d101971df4)
This commit is contained in:
parent
2170c7a352
commit
42c05b9690
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
{% block customhead %}
|
{% block customhead %}
|
||||||
|
|
||||||
<script id="template_zephyr" type="text/x-handlebars-template">
|
<script id="template_message" type="text/x-handlebars-template">
|
||||||
{% rawjstemplate "zephyr" %}
|
{% rawjstemplate "message" %}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script id="template_subscription" type="text/x-handlebars-template">
|
<script id="template_subscription" type="text/x-handlebars-template">
|
||||||
|
|
|
@ -13,7 +13,7 @@ $(function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compile Handlebars templates.
|
// Compile Handlebars templates.
|
||||||
templates.zephyr = Handlebars.compile($("#template_zephyr").html());
|
templates.message = Handlebars.compile($("#template_message").html());
|
||||||
templates.subscription = Handlebars.compile($("#template_subscription").html());
|
templates.subscription = Handlebars.compile($("#template_subscription").html());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,7 @@ function add_to_table(messages, table_name, filter_function, where) {
|
||||||
message_groups[table_name] = message_groups[table_name].concat(new_message_groups);
|
message_groups[table_name] = message_groups[table_name].concat(new_message_groups);
|
||||||
}
|
}
|
||||||
|
|
||||||
var rendered = templates.zephyr({
|
var rendered = templates.message({
|
||||||
messages: messages_to_render,
|
messages: messages_to_render,
|
||||||
include_layout_row: (table.find('tr:first').length === 0)
|
include_layout_row: (table.find('tr:first').length === 0)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue