This commit is contained in:
Blackwhitebear8 2025-06-22 16:33:28 +02:00
commit 5e31dd0214
37 changed files with 2082 additions and 0 deletions

25
templates/port.html Normal file
View file

@ -0,0 +1,25 @@
{% extends "base.html" %}
{% block title %}AS215085 - Router tools | Port{% endblock %}
{% block content %}
<section id="overview">
<center>
{% if error %}
<div class="graph-container">
<h2 style="color: red;"><strong>Error:</strong> Interface <strong>{{ interface_name }}</strong> not found.</h2>
</div>
{% else %}
<p><b>Stats for port: {{ interface_name }}</b></p>
<div class="graph-container">
<p>24H</p>
<img src="data:image/svg+xml;base64,{{ daily }}" alt="Day">
<p>Week</p>
<img src="data:image/svg+xml;base64,{{ weekly }}" alt="Week">
<p>Month</p>
<img src="data:image/svg+xml;base64,{{ monthly }}" alt="Month">
</div>
{% endif %}
</center>
</section>
{% endblock %}