{{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" style="display:none">清除</button>
</div>

<div class="admin-table-wrap" id="commentTableWrap">
    <table class="admin-table">
        <thead>
            <tr>
                <th style="width:60px">ID</th>
                <th style="width:100px">作者</th>
                <th>评论内容</th>
                <th style="width:160px">所属文章</th>
                <th style="width:140px">时间</th>
                <th style="width:100px">操作</th>
            </tr>
        </thead>
        <tbody id="commentTableBody"></tbody>
    </table>
</div>

<div class="admin-pagination" id="commentPagination"></div>
<div class="admin-loading" id="commentLoading" style="display:none">加载中...</div>

{{template "admin/layout/footer.html" .}}
<script src="/admin/static/js/comments.js?v={{assetV "/admin/static/js/comments.js"}}" nonce="{{.CSPNonce}}"></script>
