summaryrefslogtreecommitdiff
path: root/web/kbn_templates/index.j2
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2024-02-18 02:41:40 +0300
committerEvgeny Zinoviev <me@ch1p.io>2024-02-18 02:41:40 +0300
commitd79309e498cdc1358c81367ce2a93a5731e517d1 (patch)
tree675f200a986dfacd7d80787aa08570ef418ffa0a /web/kbn_templates/index.j2
parent688add1242be632837aad63832ebf7605f424079 (diff)
web_kbn: use i18n in j2 templates
Diffstat (limited to 'web/kbn_templates/index.j2')
-rw-r--r--web/kbn_templates/index.j222
1 files changed, 11 insertions, 11 deletions
diff --git a/web/kbn_templates/index.j2 b/web/kbn_templates/index.j2
index cdf3026..e246dc5 100644
--- a/web/kbn_templates/index.j2
+++ b/web/kbn_templates/index.j2
@@ -4,7 +4,7 @@
<div class="container py-4">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
- <li class="breadcrumb-item active" aria-current="page">Главная</li>
+ <li class="breadcrumb-item active" aria-current="page">{{ "main"|lang }}</li>
</ol>
</nav>
@@ -14,24 +14,24 @@
<!-- </div>-->
<!-- {% endif %}-->
- <h6>Интернет</h6>
+ <h6>{{ "internet"|lang }}</h6>
<ul class="list-group list-group-flush">
- <li class="list-group-item"><a href="/modems.cgi">Модемы</a></li>
- <li class="list-group-item"><a href="/routing.cgi">Маршрутизация</a></li>
- <li class="list-group-item"><a href="/sms.cgi">SMS-сообщения</a></li>
+ <li class="list-group-item"><a href="/modems.cgi">{{ "modems"|lang }}</a></li>
+ <li class="list-group-item"><a href="/routing.cgi">{{ "routing"|lang }}</a></li>
+ <li class="list-group-item"><a href="/sms.cgi">{{ "sms"|lang }}</a></li>
</ul>
- <h6 class="mt-4">Другое</h6>
+ <h6 class="mt-4">{{ "misc"|lang }}</h6>
<ul class="list-group list-group-flush">
- <li class="list-group-item"><a href="/inverter.cgi">Инвертор</a> (<a href="{{ inverter_grafana_url }}">Grafana</a>)</li>
- <li class="list-group-item"><a href="/pump.cgi">Насос</a></li>
- <li class="list-group-item"><a href="/sensors.cgi">Датчики</a> (<a href="{{ sensors_grafana_url }}">Grafana</a>)</li>
+ <li class="list-group-item"><a href="/inverter.cgi">{{ "inverter"|lang }}</a> (<a href="{{ inverter_grafana_url }}">Grafana</a>)</li>
+ <li class="list-group-item"><a href="/pump.cgi">{{ "pump"|lang }}</a></li>
+ <li class="list-group-item"><a href="/sensors.cgi">{{ "sensors"|lang }}</a> (<a href="{{ sensors_grafana_url }}">Grafana</a>)</li>
</ul>
<nav class="mt-4">
<div class="nav nav-tabs" id="nav-tab">
- <button class="nav-link active" type="button" id="cam_zones_btn" data-id="zones">По зонам</button>
- <button class="nav-link" type="button" id="cam_all_btn" data-id="all">Все камеры</button>
+ <button class="nav-link active" type="button" id="cam_zones_btn" data-id="zones">{{ "cams_by_zone"|lang }}</button>
+ <button class="nav-link" type="button" id="cam_all_btn" data-id="all">{{ "cams_all"|lang }}</button>
</div>
</nav>