summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/efi_inspector.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/efi_inspector.html')
-rw-r--r--ogcp/templates/efi_inspector.html55
1 files changed, 55 insertions, 0 deletions
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 %}