update admin

This commit is contained in:
2026-05-06 19:10:27 +08:00
parent e24b41f53c
commit e8f36222e7
25 changed files with 1103 additions and 354 deletions
@@ -0,0 +1,48 @@
<#import "admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 操作审计日志" active=active adminName=adminName>
<h2 class="ui header">操作审计日志</h2>
<p class="small-muted">记录所有管理员的后台操作,包括角色管理、用户管理、内容管理等。</p>
<table class="ui striped celled table">
<thead>
<tr>
<th>ID</th>
<th>管理员</th>
<th>操作类型</th>
<th>目标类型</th>
<th>目标ID</th>
<th>描述</th>
<th>状态</th>
<th>操作时间</th>
</tr>
</thead>
<tbody>
<#list logs as l>
<tr>
<td>${l.id}</td>
<td>${l.adminName!""}</td>
<td><span class="ui label">${l.actionType!""}</span></td>
<td>${l.targetType!""}</td>
<td>${l.targetId!""}</td>
<td>
<div style="max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" title="${l.description!""}">
${l.description!""}
</div>
</td>
<td>
<#if l.status == "success">
<span class="ui label green">成功</span>
<#elseif l.status == "blocked">
<span class="ui label orange">阻止</span>
<#elseif l.status == "ignored">
<span class="ui label yellow">忽略</span>
<#else>
<span class="ui label">${l.status!""}</span>
</#if>
</td>
<td>${l.createTime?string('yyyy-MM-dd HH:mm:ss')!""}</td>
</tr>
</#list>
</tbody>
</table>
</@shell.page>