summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-09 09:54:06 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-10 15:11:11 +0200
commita1b164b1062eb7ba6b724ebe84d8d7e0b308e234 (patch)
treec0f3c689fdbf036b77952356062c31f84435f532 /ogcp/templates
parentfd4da7d3edbc60c2575d4f3485128b09630beb75 (diff)
templates: add efi data to /client/info
Show EFI info obtained through GET /efi.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/client_details.html5
-rw-r--r--ogcp/templates/efi_inspector.html55
2 files changed, 60 insertions, 0 deletions
diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html
index 6bccace..e462205 100644
--- a/ogcp/templates/actions/client_details.html
+++ b/ogcp/templates/actions/client_details.html
@@ -41,7 +41,12 @@
{% set readonly_disk_inspector = True %}
{% include 'disk_inspector.html' %}
+<br>
{% include 'cache_inspector.html' %}
+<br>
+
+{% include 'efi_inspector.html' %}
+
{% endblock %}
diff --git a/ogcp/templates/efi_inspector.html b/ogcp/templates/efi_inspector.html
new file mode 100644
index 0000000..43f1bc7
--- /dev/null
+++ b/ogcp/templates/efi_inspector.html
@@ -0,0 +1,55 @@
+{% if efi_data is defined %}
+
+{% if efi_data['entries']|length > 0 %}
+
+<div class="form-group mx-5">
+ <label class="control-label">{{ _('Boot entries') }}</label>
+ <table class="table table-bordered">
+ <thead class="thead-light">
+ <tr>
+ <th>{{ _('Order') }}</th>
+ <th>{{ _('Active') }}</th>
+ <th>{{ _('Name') }}</th>
+ <th>{{ _('Description') }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for entry_data in efi_data['entries'] %}
+ <tr>
+ <td>
+ <p>
+ {% if entry_data['order'] is defined %}
+ {{ entry_data['order'] }}
+ {% else %}
+ -
+ {% endif %}
+ </p>
+ </td>
+ <td>
+ <p>
+ {% if entry_data['active'] == 1 %}
+ {{ _('yes') }}
+ {% else %}
+ {{ _('no') }}
+ {% endif %}
+ </p>
+ </td>
+ <td>
+ <p>{{ entry_data['name'] }}</p>
+ </td>
+ <td>
+ <p>{{ entry_data['description'] }}</p>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+</div>
+
+{% else %}
+<div class="card text-center p-3">
+ <b>{{ _('No EFI contents') }}</b>
+</div>
+{% endif %}
+
+{% endif %}