summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/macros.html
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-12-21 12:19:49 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-21 12:22:44 +0100
commit555460f982e733136360a770698e2eb01099f311 (patch)
tree3a038d954ed5da49a7810f66d9257624cc080468 /ogcp/templates/macros.html
parent52c5555f659db69995296c6b3bad68244ceeb2f4 (diff)
Remove id from client's bubbles
Remove id from client's bubbles in the following commands: Power (Poweroff, Poweron, Reboot); Setup (Set boot mode, Set ogLive); Client (Start session) To make the string replacement, a custom jinja filter has been created
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r--ogcp/templates/macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index 0d1ebe2..fb7c311 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -104,7 +104,7 @@
{% set max_clients = 50 %}
{% for name_id, ip in selected_clients[:max_clients] %}
<div id="pill-{{ name_id|replace(".", "_")|replace(" ", "_") }}" class="badge badge-pill og-pill badge-light">
- {{ name_id }}<br>{{ ip }}
+ {{ name_id|remove_id }}<br>{{ ip }}
</div>
{% if loop.last and (selected_clients|length > max_clients) %}
<div class="badge badge-pill badge-light">...</div>