summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/macros.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-10 15:21:03 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-11 12:24:44 +0200
commit696a81fd1147e301dd69609558da387f17c57228 (patch)
treea11a1c47b56329af844eaa81c7b68adfec7842cf /ogcp/templates/macros.html
parent6b33268b5c03db29cb003acb4e2042c9254402d2 (diff)
templates: add name and status to client list
Add a client name column to the client list view accessed through the Dashboard. Add status column to the client list. Move client status leyend into a separate file. Show the client status leyend in client list. Fix the 0 link speed conditional. Reuse the data returned by get_scopes() to reduce the number of requests.
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r--ogcp/templates/macros.html18
1 files changed, 3 insertions, 15 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index 4f18265..7583c59 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -93,21 +93,9 @@
{% macro selected_clients() -%}
<h2 class="mx-5 subhead-heading">{{_('Selected clients')}}</h2>
-<div class="card">
- <div class="card-body">
- <ul id="clients-color-legend" class="d-flex flex-wrap justify-content-center nav ogcp-nav nav-pills">
- <li class="nav-item"><i class="nav-icon far fa-circle"></i> {{_('Shutdown')}} </li>
- <li class="nav-item"><i class="nav-icon fas fa-circle text-wol"></i> {{_('WoL sent')}} </li>
- <li class="nav-item"><i class="nav-icon fas fa-circle text-warning"></i> ogLive </li>
- <li class="nav-item"><i class="nav-icon fas fa-circle text-danger"></i> {{_('Busy')}} </li>
- <li class="nav-item"><i class="nav-icon fas fa-circle text-linux"></i> Linux </li>
- <li class="nav-item"><i class="nav-icon fas fa-user-circle text-linux"></i> {{_('Linux session')}} </li>
- <li class="nav-item"><i class="nav-icon fas fa-circle text-windows"></i> Windows </li>
- <li class="nav-item"><i class="nav-icon fas fa-user-circle text-windows"></i> {{_('Windows session')}} </li>
- <li class="nav-item"><i class="nav-icon fas fa-circle text-success"></i> VDI </li>
- </ul>
- </div>
-</div>
+
+{% include 'client_status_leyend.html' %}
+
<div id="selected-clients" class="d-flex flex-wrap justify-content-center"></div>
{% endmacro %}