summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web/modem_status_page.twig
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-21 01:45:56 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-21 01:45:56 +0300
commit6f53e6e997c9f4647a667bd58b11bc622fa3b47f (patch)
tree226bd65a04576de4f41bf8396af97cd43ca27829 /localwebsite/templates-web/modem_status_page.twig
parent902a3bfbe2c4645e6725fb7583500d1a28026fad (diff)
move local website to homekit's tree
Diffstat (limited to 'localwebsite/templates-web/modem_status_page.twig')
-rw-r--r--localwebsite/templates-web/modem_status_page.twig19
1 files changed, 19 insertions, 0 deletions
diff --git a/localwebsite/templates-web/modem_status_page.twig b/localwebsite/templates-web/modem_status_page.twig
new file mode 100644
index 0000000..1aa5cf8
--- /dev/null
+++ b/localwebsite/templates-web/modem_status_page.twig
@@ -0,0 +1,19 @@
+<nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ <li class="breadcrumb-item"><a href="/">Главная</a></li>
+ <li class="breadcrumb-item active" aria-current="page">Модемы</li>
+ </ol>
+</nav>
+
+{% for modem_key, modem in modems %}
+ <h6 class="text-primary{% if not loop.first %} mt-4{% endif %}">{{ modem.label }}</h6>
+ <div id="modem_data_{{ modem_key }}">
+ {% include 'modem_data.twig' with {
+ loading: true
+ } %}
+ </div>
+{% endfor %}
+
+{% js %}
+ModemStatus.init({{ js_modems|json_encode|raw }});
+{% endjs %}