summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/efi_inspector.html
blob: 43f1bc7a4935f097981167d3b1aacc5cd8552685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 %}