56 lines
1.4 KiB
HTML
56 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Home{% endblock %}
|
|
{% block content %}
|
|
<div class="container">
|
|
<h1 class="my-4">Home</h1>
|
|
|
|
<!-- Domains Expiring this Year -->
|
|
<h2 class="mb-3">Domains Expiring this Year</h2>
|
|
{% if domains_expiring and domains_expiring|length > 0 %}
|
|
<table class="table table-bordered table-hover">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>WHOIS Expiration</th>
|
|
<th>SSL Expiration</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for d in domains_expiring %}
|
|
<tr>
|
|
<td>{{ d.domain }}</td>
|
|
<td>{{ d.expiration_date }}</td>
|
|
<td>{{ d.ssl_expiration_date }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No domains expiring this year.</p>
|
|
{% endif %}
|
|
|
|
<!-- Certs Expiring this Year -->
|
|
<h2 class="mt-5 mb-3">Certs Expiring this Year</h2>
|
|
{% if certs_expiring and certs_expiring|length > 0 %}
|
|
<table class="table table-bordered table-hover">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>SSL Expiration</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for d in certs_expiring %}
|
|
<tr>
|
|
<td>{{ d.domain }}</td>
|
|
<td>{{ d.ssl_expiration_date }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No certificates expiring this year.</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|