diff --git a/internal/controller/admin/admin_post_controller.go b/internal/controller/admin/admin_post_controller.go index 24e0efd..8e488cd 100644 --- a/internal/controller/admin/admin_post_controller.go +++ b/internal/controller/admin/admin_post_controller.go @@ -47,9 +47,6 @@ func (ctrl *AdminPostController) PostsPage(c *gin.Context) { nextPage = totalPages } - // 查询待审修订(approved 帖子有 PendingBody 的) - revisions, _, _ := ctrl.postService.ListPendingRevisions(keyword, 1, 100) - c.HTML(http.StatusOK, "admin/posts/index.html", common.BuildAdminPageData(c, gin.H{ "Title": "内容管理", "Posts": posts, @@ -61,7 +58,6 @@ func (ctrl *AdminPostController) PostsPage(c *gin.Context) { "Keyword": keyword, "Status": status, "StatusNames": common.PostStatusDisplayNames, - "Revisions": revisions, "ExtraCSS": "/admin/static/css/posts.css", })) } diff --git a/templates/admin/html/posts/index.html b/templates/admin/html/posts/index.html index a227e97..c795c36 100644 --- a/templates/admin/html/posts/index.html +++ b/templates/admin/html/posts/index.html @@ -22,47 +22,6 @@
{{.Error}}
{{end}} - {{if .Revisions}} -
-

修订待审核 {{len .Revisions}}

- - - - - - - - - - - - - {{range .Revisions}} - - - - - - - - - {{end}} - -
ID标题作者状态时间操作
{{.ID}}{{.Title}} 修订中{{if .AuthorName}}{{.AuthorName}}({{.UserID}}){{else}}UID{{.UserID}}{{end}}{{index $.StatusNames .Status}}{{if .IsLocked}} 已锁定{{end}}{{.CreatedAt.Format "2006-01-02 15:04"}} -
- - - {{if and (not .IsLocked)}} - - {{end}} - {{if .IsLocked}} - - {{end}} -
-
-
- {{end}} - @@ -75,7 +34,7 @@ - {{if and (eq (len .Posts) 0) (eq (len .Revisions) 0)}} + {{if eq (len .Posts) 0}} {{end}} {{range .Posts}}
暂无帖子