{# Copyright 2012-2022 Jo-Philipp Wich Licensed to the public under the Apache License 2.0. -#} {% include('header', { css: ` .commands { display: flex; flex-wrap: wrap; } .commandbox { flex: 0 0 30%; margin: .5em; display: flex; flex-direction: column; } .commandbox > p, .commandbox > p > * { display: block; } .commandbox div { margin-top: auto; } ` }); -%} {% const commands = []; uci.foreach('luci', 'command', s => push(commands, s)); -%}

{{ _('Custom Commands') }}

{% if (length(commands) == 0): %}

{{ _('This section contains no values yet') }}

{% else %}
{% for (let command in commands): %}

{{ entityencode(command.name) }}

{{ _('Command:') }} {{ entityencode(command.command) }}

{% if (command.param == "1"): %}

{{ _('Arguments:') }}

{% endif %}
{% if (command.public == "1"): %} {% endif %}
{% endfor %}
{% endif %}
{% include('footer') %}