added connection status macro and background task scheduling
This commit is contained in:
7
app/templates/macros/connection_status.html
Normal file
7
app/templates/macros/connection_status.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{% macro toggle_connection_status(status_code) %}
|
||||
{% if status_code == 200 %}
|
||||
{{ url_for('static', filename='up.png') }}
|
||||
{% else %}
|
||||
{{ url_for('static', filename='down.png') }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user