From 46627c6734d5cc7809083a041e9f12b5e2a28589 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Tue, 6 Jun 2017 22:52:33 +0300 Subject: [PATCH] fix additional configs missing unit --- motioneye/templates/main.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/motioneye/templates/main.html b/motioneye/templates/main.html index eb6ff49..7ce575e 100644 --- a/motioneye/templates/main.html +++ b/motioneye/templates/main.html @@ -23,10 +23,12 @@ {% if config['type'] == 'str' %} + {% if config['unit'] %}{{config['unit']}}{% endif %} {% elif config['type'] == 'pwd' %} {% elif config['type'] == 'number' %} + {% if config['unit'] %}{{config['unit']}}{% endif %} {% elif config['type'] == 'range' %} {% elif config['type'] == 'bool' %} @@ -37,6 +39,7 @@ {% endfor %} + {% if config['unit'] %}{{config['unit']}}{% endif %} {% elif config['type'] == 'html' %}
{% endif %} -- 2.39.5