commit
This commit is contained in:
31
templates/history.html
Normal file
31
templates/history.html
Normal 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 %}
|
Reference in New Issue
Block a user