{% extends "admin_layout.html" %}
{% block active_nav %}logs{% endblock %}
{% block title %}日志 · 管理后台{% endblock %}
{% block content %}
📋 日志
| 时间 | IP | 用户名 | 结果 | 说明 |
{% for e in login_logs %}
| {{ (e.ts or '')[:19].replace('T', ' ') }} |
{{ e.ip or '-' }} |
{{ e.username or '-' }} |
{% if e.ok %}成功{% else %}失败{% endif %} |
{{ e.reason or '' }} |
{% else %}
| 暂无登录日志 |
{% endfor %}
| 时间 | 操作者 | 操作 | 详情 |
{% for e in audit_logs %}
| {{ (e.ts or '')[:19].replace('T', ' ') }} |
{{ e.actor or '-' }} |
{{ e.action or '' }} |
{{ e.detail or '' }} |
{% else %}
| 暂无审计记录 |
{% endfor %}
{% endblock %}