This commit is contained in:
Mateusz Gruszczyński
2025-03-18 12:53:33 +01:00
commit 2a065aba3b
19 changed files with 1617 additions and 0 deletions

31
templates/history.html Normal file
View File

@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block title %}Historia - SSL Monitor{% endblock %}
{% block content %}
<div class="container mt-4">
<h2>Historia sprawdzeń certyfikatów</h2>
<table class="table table-dark table-striped">
<thead>
<tr>
<th>ID</th>
<th>Usługa</th>
<th>Status</th>
<th>Data sprawdzenia</th>
<th>Data wygaśnięcia</th>
<th>Komunikat</th>
</tr>
</thead>
<tbody>
{% for record in history %}
<tr>
<td>{{ record.id }}</td>
<td>{{ record.service.host }}:{{ record.service.port }} ({{ record.service.protocol }})</td>
<td>{{ record.status }}</td>
<td>{{ record.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}</td>
<td>{{ record.expiry_date.strftime('%Y-%m-%d %H:%M:%S') if record.expiry_date else '---' }}</td>
<td>{{ record.message }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}