fix some jinja typos

This commit is contained in:
Carsten Rosenberg 2021-06-04 15:24:49 +02:00
parent 32983635c6
commit d6e64dce8e
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@
<select multiple="multiple" class="form-control" id="account_multi_user" <select multiple="multiple" class="form-control" id="account_multi_user"
name="account_multi_user"> name="account_multi_user">
{% for user in users %} {% for user in users %}
<option {% if user.id in account_user_ids %}selected{% endif %} <option {% if account_user_ids is defined and user.id in account_user_ids %}selected{% endif %}
value="{{ user.username }}">{{ user.username }}</option> value="{{ user.username }}">{{ user.username }}</option>
{% endfor %} {% endfor %}
</select> </select>

View File

@ -15,7 +15,7 @@
{% endmacro %} {% endmacro %}
{% macro serial(domain) %} {% macro serial(domain) %}
{% if domain.serial == 0 %}{{ domain.notified_serial }}{% else %}{{ domain.serial }}{% endif %} {% if domain.serial == '0' %}{{ domain.notified_serial }}{% else %}{{ domain.serial }}{% endif %}
{% endmacro %} {% endmacro %}
{% macro master(domain) %} {% macro master(domain) %}