diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-18 02:41:40 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-18 02:41:40 +0300 |
commit | d79309e498cdc1358c81367ce2a93a5731e517d1 (patch) | |
tree | 675f200a986dfacd7d80787aa08570ef418ffa0a /web/kbn_templates/pump.j2 | |
parent | 688add1242be632837aad63832ebf7605f424079 (diff) |
web_kbn: use i18n in j2 templates
Diffstat (limited to 'web/kbn_templates/pump.j2')
-rw-r--r-- | web/kbn_templates/pump.j2 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/kbn_templates/pump.j2 b/web/kbn_templates/pump.j2 index 28d5c9d..40836ca 100644 --- a/web/kbn_templates/pump.j2 +++ b/web/kbn_templates/pump.j2 @@ -1,17 +1,17 @@ {% extends "base.j2" %} {% block content %} -{{ breadcrumbs([{'text': 'Насос'}]) }} +{{ breadcrumbs([{'text': 'pump'|lang}]) }} <form action="/pump.cgi" method="get"> <input type="hidden" name="set" value="{{ 'off' if status == 'on' else 'on' }}" /> - Сейчас насос + {{ "pump_now_is"|lang }} {% if status == 'on' %} - <span class="text-success"><b>включен</b></span>.<br><br> - <button type="submit" class="btn btn-primary">Выключить</button> + <span class="text-success"><b>{{ "pump_now_on"|lang }}</b></span>.<br><br> + <button type="submit" class="btn btn-primary">{{ "pump_turn_off"|lang }}</button> {% else %} - <span class="text-danger"><b>выключен</b></span>.<br><br> - <button type="submit" class="btn btn-primary">Включить</button> + <span class="text-danger"><b>{{ "pump_now_off"|lang }}</b></span>.<br><br> + <button type="submit" class="btn btn-primary">{{ "pump_turn_on"|lang }}</button> {% endif %} </form> {% endblock %} |