Update admin

This commit is contained in:
2026-05-08 19:20:49 +08:00
parent e8f36222e7
commit 1828c37fca
28 changed files with 79 additions and 35 deletions
@@ -7,7 +7,7 @@
<meta name="_csrf" content="${_csrf.token}"/>
<meta name="_csrf_header" content="${_csrf.headerName}"/>
<title>${title}</title>
<#include "admin-commjs.ftl"/>
<#include "admin/admin-commjs.ftl"/>
<style>
body { background: #f6f7fb; }
.admin-header { background: #1f2937; color: #fff; padding: 12px 18px; }
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 操作审计日志" active=active adminName=adminName>
<h2 class="ui header">操作审计日志</h2>
<p class="small-muted">记录所有管理员的后台操作,包括角色管理、用户管理、内容管理等。</p>
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 文章管理" active=active adminName=adminName>
<h2 class="ui header">文章管理</h2>
<table class="ui striped celled table">
+1 -1
View File
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 总览" active=active adminName=adminName>
<h2 class="ui header">系统总览</h2>
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 插件管理(预留)" active=active adminName=adminName>
<h2 class="ui header">插件管理(预留)</h2>
<div class="ui info message">
+3 -3
View File
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 评论管理" active=active adminName=adminName>
<h2 class="ui header">评论管理</h2>
<table class="ui compact celled table">
@@ -16,8 +16,8 @@
<#list posts as p>
<tr>
<td>${p.id}</td>
<td>${discussionNames[p.discussionId]!('#'+p.discussionId?c)}</td>
<td>${userNames[p.createId]!('#'+p.createId?c)}</td>
<td>${discussionNames[p.discussionId?c]!('#'+p.discussionId?c)}</td>
<td>${userNames[p.createId?c]!('#'+p.createId?c)}</td>
<td><div style="max-width:420px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">${p.content!""}</div></td>
<td>${p.createTime?string('yyyy-MM-dd HH:mm:ss')!""}</td>
<td>
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 主题管理(预留)" active=active adminName=adminName>
<h2 class="ui header">主题管理(预留)</h2>
<div class="ui info message">
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 版本升级日志" active=active adminName=adminName>
<h2 class="ui header">版本功能升级日志</h2>
<p class="small-muted">记录每次升级新增与修复内容,便于发布追踪与回滚评估。</p>
+2 -2
View File
@@ -1,4 +1,4 @@
<#import "admin-shell.ftl" as shell>
<#import "admin/admin-shell.ftl" as shell>
<@shell.page title="后台管理 - 用户与角色" active=active adminName=adminName>
<h2 class="ui header">用户与角色管理</h2>
<p class="small-muted">简单 RBAC:用户可绑定多个角色,拥有 ADMIN 角色的用户可以进入后台管理。</p>
@@ -59,7 +59,7 @@
<div class="field">
<div class="ui checkbox">
<input type="checkbox" name="roleIds" value="${r.id}"
<#if userRoleIds[u.id]?? && userRoleIds[u.id]?seq_contains(r.id)>checked</#if>>
<#if userRoleIds[u.id?c]?? && userRoleIds[u.id?c]?seq_contains(r.id)>checked</#if>>
<label>${r.code}</label>
</div>
</div>