Replace MySQL with SQLite, fix Jinja2 template syntax, and add README

This commit is contained in:
j
2026-03-07 19:50:14 +13:00
parent bd907c8d40
commit d8754a9d92
9 changed files with 104 additions and 58 deletions

View File

@@ -142,7 +142,7 @@
<td>{{ iface.get('ipv6', '-') or '-' }}</td>
<td>{{ iface.get('mac', '-') or '-' }}</td>
<td>{{ iface.get('state', '-') }}</td>
<td>{% if iface.get('speed_mbps') %}{{ iface.speed_mbps }} Mbps{% else %}-{% endif %}</td>
<td>{% if iface.get('speed_mbps') %}{{ iface.get('speed_mbps') }} Mbps{% else %}-{% endif %}</td>
<td>{{ iface.get('driver', '-') or '-' }}</td>
</tr>
{% endfor %}
@@ -203,7 +203,7 @@
{% if d.get('error') %}
<div class="detail-section wide">
<h4>Error</h4>
<p class="error-text">{{ d.error }}</p>
<p class="error-text">{{ d.get('error') }}</p>
</div>
{% endif %}
</div>