templates: improve client list in cache and boot os views

Show client IPs inside div components with a custom "card" styling.
master
Alejandro Sirgo Rica 2024-06-27 16:12:37 +02:00
parent f473059902
commit 57b78a03bd
2 changed files with 10 additions and 2 deletions

View File

@ -40,7 +40,11 @@
{{ image.clients() }}
<b>{{ image.image_name.data }} ({{ (images_data[image.selected.label.text]['size'] | int / 2**20)|round(3) }} MiB)</b>
</td>
<td>{{ ', '.join(images_data[image.selected.label.text]['clients']) }}</td>
<td>
{% for ip in images_data[image.selected.label.text]['clients'] %}
<div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>

View File

@ -39,7 +39,11 @@ The selected clients have different installed OS:
{{ os_choice(class_="form-control") }}
<b>{{ os_choice.label.text }}</b>
</td>
<td>{{ ', '.join(os_groups[os_choice.data]) }}</td>
<td>
{% for ip in os_groups[os_choice.data] %}
<div class="card d-inline-block" style="padding: 5px;">{{ ip }}</div>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>