mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Render all new zephyrs with a single template invocation
(imported from commit 13803e0e96901d129d4aefcd5fde63548deb4dc0)
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
{{! Client-side Mustache template for rendering zephyrs.}}
|
{{! Client-side Mustache template for rendering zephyrs.}}
|
||||||
|
{{#each zephyrs}}
|
||||||
|
{{#with this}}
|
||||||
{{#include_bookend}}
|
{{#include_bookend}}
|
||||||
<tr><td /><td /><td class="bookend" /></tr>
|
<tr><td /><td /><td class="bookend" /></tr>
|
||||||
{{/include_bookend}}
|
{{/include_bookend}}
|
||||||
@@ -37,3 +39,5 @@
|
|||||||
<div class="zephyr_content">{{{content}}}</div>
|
<div class="zephyr_content">{{{content}}}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{{/with}}
|
||||||
|
{{/each}}
|
||||||
|
|||||||
@@ -655,10 +655,7 @@ function add_to_table(zephyrs, table_name, filter_function) {
|
|||||||
prev = zephyr;
|
prev = zephyr;
|
||||||
});
|
});
|
||||||
|
|
||||||
$.each(zephyrs_to_render, function (index, zephyr) {
|
table.append(templates.zephyr({'zephyrs': zephyrs_to_render}));
|
||||||
var new_tr = $(templates.zephyr(zephyr));
|
|
||||||
table.append(new_tr);
|
|
||||||
});
|
|
||||||
|
|
||||||
$.each(zephyrs_to_render, function (index, zephyr) {
|
$.each(zephyrs_to_render, function (index, zephyr) {
|
||||||
register_huddle_onclick(get_zephyr_row(zephyr.id), zephyr.sender_email);
|
register_huddle_onclick(get_zephyr_row(zephyr.id), zephyr.sender_email);
|
||||||
|
|||||||
Reference in New Issue
Block a user