{% extends "base.html" %}{% block title %}Error Logs{% endblock %}{% block content %}
<div class="card p-4 shadow-sm"><h2>🐞 Error Logs</h2><table class="table table-sm"><tr><th>Date</th><th>Type</th><th>Message</th><th>Path</th><th>User</th></tr>{% for e in errors %}<tr><td>{{e.created_at}}</td><td>{{e.error_type}}</td><td>{{e.message}}</td><td>{{e.path}}</td><td>{{e.username}}</td></tr>{% else %}<tr><td colspan="5">No logged errors.</td></tr>{% endfor %}</table>{% if log_text %}<h4>File Log</h4><pre style="max-height:300px;overflow:auto">{{ log_text }}</pre>{% endif %}</div>
{% endblock %}
