Semaine 11

This commit is contained in:
gauvainboiche
2026-07-11 21:38:00 +02:00
parent d3d2416dea
commit 0d071d2843
281 changed files with 54412 additions and 0 deletions
@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block title %}Statistics - Network Inventory{% endblock %}
{% block content %}
<h1>Inventory statistics</h1>
<p>Signed-in as <strong>{{ username }}</strong>.</p>
{% if total > 0 %}
<table>
<thead>
<tr>
<th>Metric</th>
<th>Count</th>
</tr>
</thead>
<tbody>
<tr>
<td>Total equipments</td>
<td>{{ total }}</td>
</tr>
<tr>
<td>Active</td>
<td><span class="up">{{ active }}</span></td>
</tr>
<tr>
<td>Inactive</td>
<td><span class="down">{{ inactive }}</span></td>
</tr>
</tbody>
</table>
{% else %}
<p><em>There's no equipment in the inventory.</em></p>
{% endif %}
{% endblock %}