16 lines
384 B
Django/Jinja
16 lines
384 B
Django/Jinja
{% for username, settings in nut_users.items() %}
|
|
[{{ username }}]
|
|
{% if settings.password|d(none) is not none %}
|
|
password = {{ settings.password | decrypt }}
|
|
{% endif %}
|
|
{% for action in settings.actions|d([]) %}
|
|
actions = {{ action }}
|
|
{% endfor %}
|
|
{% for instcmds in settings.instcmds|d([]) %}
|
|
instcmds = {{ instcmds }}
|
|
{% endfor %}
|
|
{% if not loop.last %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|