From: Calin Crisan Date: Tue, 6 Jun 2017 19:52:33 +0000 (+0300) Subject: fix additional configs missing unit X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=46627c6734d5cc7809083a041e9f12b5e2a28589;p=motioneye-debian fix additional configs missing unit --- 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 %}