This repository has been archived on 2026-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
Files
MetaLab/templates/admin/html/comments/index.html
Victor_Jay 543325105c fix: 修复管理后台样式丢失 + CSP inline style 违规
- 评论管理页:创建 comments.css,controller 传递 ExtraCSS/ExtraJS,模板移除所有 inline style,JS 改用 CSS 类
- 修复 comments.js 加载顺序:通过 ExtraJS 在 common.js 之后加载,解决 api is not defined
- base.html:SVG inline style 移至 common.css
- dashboard/index.html:3 处 inline style 替换为 CSS 类
- audit/index.html:modal 移除冗余 style="display:none"
- fund_logs/logs:label inline style 移至 energy.css
- common.css 新增多个 CSS 规则
- energy.css 新增 .filter-bar label 规则
2026-06-02 21:37:52 +08:00

33 lines
1.1 KiB
HTML

{{template "admin/layout/base.html" .}}
<div class="admin-page-header">
<h2>评论管理</h2>
</div>
<div class="admin-toolbar">
<input type="text" id="commentSearch" class="admin-search-input" placeholder="搜索评论内容、作者或文章标题..." />
<button id="commentSearchBtn" class="btn btn-secondary">搜索</button>
<button id="commentClearBtn" class="btn btn-secondary admin-hidden">清除</button>
</div>
<div class="admin-table-wrap" id="commentTableWrap">
<table class="admin-table">
<thead>
<tr>
<th class="th-id">ID</th>
<th class="th-author">作者</th>
<th>评论内容</th>
<th class="th-post">所属文章</th>
<th class="th-time">时间</th>
<th class="th-actions">操作</th>
</tr>
</thead>
<tbody id="commentTableBody"></tbody>
</table>
</div>
<div class="admin-pagination" id="commentPagination"></div>
<div class="admin-loading admin-hidden" id="commentLoading">加载中...</div>
{{template "admin/layout/footer.html" .}}