summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/templates/macros.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index a779dd7..d6ef2af 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -55,8 +55,12 @@
{% macro cmd_selected_clients(ip_list) -%}
<ul class="list-group mx-5 list-group-horizontal-sm d-flex flex-wrap">
-{% for ip in ip_list %}
+{% set max_clients = 50 %}
+{% for ip in ip_list[:max_clients] %}
<li class="list-group-item flex-fill list-group-item-info">{{ ip }}</li>
+ {% if loop.last %}
+ <li class="list-group-item flex-fill list-group-item-info">...</li>
+ {% endif %}
{% endfor %}
</ul>
{% endmacro %}