diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-02-23 16:05:08 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-02-24 17:05:12 +0100 |
commit | 42ba24c9f9e751038cb63cef45016d231915fefe (patch) | |
tree | d854e520e43f07f728e0f7fbca90832aac30445e /ogcp/templates/macros.html | |
parent | cc008a0e628ace4ff8e94c6c7f94b87fe7839edd (diff) |
Refactor selected clients drawing in commands
Refactor duplicated code as a jinja macro.
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r-- | ogcp/templates/macros.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index 7864cd4..a839ce5 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -52,3 +52,11 @@ {% macro selected_clients() -%} <div id="selected-clients" class="d-flex flex-wrap justify-content-center"></div> {% endmacro %} + +{% macro cmd_selected_clients(ip_list) -%} +<ul class="list-group mx-5 list-group-horizontal-sm"> +{% for ip in ip_list %} + <li class="list-group-item flex-fill list-group-item-info">{{ ip }}</li> +{% endfor %} +</ul> +{% endmacro %} |