{% macro scopes_tree_collapse(scopes) -%} {% endmacro %} {% macro scopes_tree_collapse_level(scopes, i, parent_id) -%} {% for scope in scopes %} {% endfor %} {% endmacro %} {% macro selected_clients() -%}
{% endmacro %} {% macro cmd_selected_clients(selected_clients) -%}
{% set max_clients = 50 %} {% for name_id, ip in selected_clients[:max_clients] %}
{{ name_id }}
{{ ip }}
{% if loop.last and (selected_clients|length > max_clients) %}
...
{% endif %} {% endfor %}
{% endmacro %}