|
1 | | - |
2 | 1 | {% extends 'base/layout.html' %} |
3 | 2 |
|
4 | 3 | {% block head %} |
5 | 4 | {% endblock head %} |
6 | 5 |
|
7 | | -{% block title %}Health Checks{% endblock %} |
| 6 | +{% block header %} |
| 7 | + <div class="page-header m-0"> |
| 8 | + {{ block.super }} |
| 9 | + |
| 10 | + {% block page-header %} |
| 11 | + <div class="container-fluid mt-2 d-print-none"> |
| 12 | + <div class="d-flex justify-content-between"> |
| 13 | + |
| 14 | + {# Title #} |
| 15 | + <div> |
| 16 | + |
| 17 | + <h2 class="page-title my-1">Health Checks</h2> |
| 18 | + {% block subtitle %}{% endblock %} |
| 19 | + </div> |
| 20 | + |
| 21 | + {# Controls #} |
| 22 | + <div class="d-print-none"> |
| 23 | + {% block controls %} |
| 24 | + <div class="btn-list"> |
| 25 | + {% block control-buttons %}{% endblock %} |
| 26 | + </div> |
| 27 | + {% endblock controls %} |
| 28 | + </div> |
| 29 | + |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + {% endblock %} |
| 33 | + |
| 34 | + {# Tabs #} |
| 35 | + <div class="page-tabs mt-3"> |
| 36 | + <div class="container-fluid"> |
| 37 | + <ul class="nav nav-tabs px-3"> |
| 38 | + <li class="nav-item" role="presentation"> |
| 39 | + <button class="nav-link active" id="object-list-tab" data-bs-toggle="tab" data-bs-target="#object-list" type="button" role="tab" aria-controls="edit-form" aria-selected="true"> |
| 40 | + Results {% badge table.page.paginator.count %} |
| 41 | + </button> |
| 42 | + </li> |
| 43 | + </ul> |
| 44 | + </div> |
| 45 | + </div> |
8 | 46 |
|
9 | | -{% block tabs %} |
10 | | - <ul class="nav nav-tabs px-3"> |
11 | | - <li class="nav-item" role="presentation"> |
12 | | - <button class="nav-link active" id="object-list-tab" data-bs-toggle="tab" data-bs-target="#object-list" type="button" role="tab" aria-controls="edit-form" aria-selected="true"> |
13 | | - Results {% badge table.page.paginator.count %} |
14 | | - </button> |
15 | | - </li> |
16 | | - </ul> |
17 | | -{% endblock tabs %} |
| 47 | + </div> |
| 48 | +{% endblock header %} |
18 | 49 |
|
19 | | -{% block content-wrapper %} |
| 50 | +{% block content %} |
20 | 51 | <div class="tab-content"> |
21 | 52 |
|
22 | 53 | {# Object list #} |
|
27 | 58 |
|
28 | 59 | <h5 class="card-header">NetBox HealthCheck Plugin</h5> |
29 | 60 |
|
30 | | - <div class="card-body"> |
31 | | - <table class="table table-striped"> |
32 | | - <thead> |
33 | | - <th colspan="2">Service</th> |
34 | | - <th>Status</th> |
35 | | - <th class="align-right">Time Taken</th> |
36 | | - </thead> |
37 | | - <tbody> |
38 | | - {% for plugin in plugins %} |
39 | | - <tr> |
40 | | - <td class="icons"> |
41 | | - <span aria-hidden="true"> |
42 | | - {% if plugin.status %} |
43 | | - ✅ |
44 | | - {% else %} |
45 | | - ❌ |
46 | | - {% endif %} |
47 | | - </span> |
48 | | - </td> |
49 | | - <td>{{ plugin.identifier }}</td> |
50 | | - <td>{{ plugin.pretty_status | linebreaks }}</td> |
51 | | - <td class="align-right">{{ plugin.time_taken|floatformat:4 }} seconds</td> |
52 | | - </tr> |
53 | | - {% endfor %} |
54 | | - </tbody> |
55 | | - </table> |
56 | | - </div> |
| 61 | + <table class="table table-striped"> |
| 62 | + <thead> |
| 63 | + <th colspan="2">Service</th> |
| 64 | + <th>Status</th> |
| 65 | + <th class="align-right">Time Taken</th> |
| 66 | + </thead> |
| 67 | + <tbody> |
| 68 | + {% for plugin in plugins %} |
| 69 | + <tr> |
| 70 | + <td class="icons"> |
| 71 | + <span aria-hidden="true"> |
| 72 | + {% if plugin.status %} |
| 73 | + ✅ |
| 74 | + {% else %} |
| 75 | + ❌ |
| 76 | + {% endif %} |
| 77 | + </span> |
| 78 | + </td> |
| 79 | + <td>{{ plugin.identifier }}</td> |
| 80 | + <td>{{ plugin.pretty_status | linebreaks }}</td> |
| 81 | + <td class="align-right">{{ plugin.time_taken|floatformat:4 }} seconds</td> |
| 82 | + </tr> |
| 83 | + {% endfor %} |
| 84 | + </tbody> |
| 85 | + </table> |
| 86 | + |
57 | 87 | </div> |
58 | | - {% include 'inc/panels/custom_fields.html' %} |
59 | 88 | </div> |
60 | 89 |
|
61 | 90 | </div> |
62 | 91 | </div> |
63 | 92 |
|
64 | | -{% endblock content-wrapper %} |
| 93 | +{% endblock content %} |
0 commit comments