added connection status macro and background task scheduling

This commit is contained in:
Bryan Bailey
2022-04-06 22:38:47 -04:00
parent 4f3e0e6feb
commit 4f3d7175f6
16 changed files with 136 additions and 15 deletions

View File

@@ -1,3 +1,5 @@
{% import 'macros/connection_status.html' as connection %}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -15,7 +17,7 @@
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
{{ moment.include_moment() }}
{% endblock %}
<link rel="shortcut icon" href="{{ url_for('static', filename='images/comic.png') }}" type="image/x-icon">
<link rel="shortcut icon" href="{{ connection.toggle_connection_status(status_code) }}" type="image/x-icon">
</head>
<body>
{% block navbar %}