mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 01:58:26 -04:00
install socket io and getting an example up
This commit is contained in:
@@ -12,3 +12,17 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro socket_block(partials, job_id, key, finished=False, form='') %}
|
||||
{% if not finished %}
|
||||
<div
|
||||
data-module="live-content"
|
||||
data-key="{{ key }}"
|
||||
data-room="job-{{ job_id }}"
|
||||
>
|
||||
{% endif %}
|
||||
{{ partials[key]|safe }}
|
||||
{% if not finished %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user