You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.9 KiB
46 lines
1.9 KiB
<!DOCTYPE html> |
|
<html xmlns:th="http://www.thymeleaf.org" lang="en"> |
|
<head th:replace="admin/common::header(~{::title},~{},~{})"> |
|
<title>控制台</title> |
|
</head> |
|
<body> |
|
|
|
<th:block th:include="admin/common::nav('index')"></th:block> |
|
|
|
<div class="container lw-main"> |
|
<div class="jumbotron"> |
|
<h3>网站概要</h3> |
|
<p>目前有 <i th:text="${ArticleCount}"></i> 篇文章, 并有 <i th:text="${CommentAll}"></i> 条关于你的评论在 <i th:text="${CategoryCount}"></i> 个分类中.</p> |
|
<p>其中有 <i th:text="${CommentNotReadCount}"></i>条 评论未查看:</p> |
|
<p><a class="btn btn-primary btn-lg" th:href="@{/admin/comment.html(view=false)}" role="button">点此查看</a></p> |
|
</div> |
|
<div class="row"> |
|
<div class="col-md-6"> |
|
<ul class="list-group"> |
|
<li class="list-group-item disabled"> |
|
<b>最新文章</b> |
|
</li> |
|
<li class="list-group-item" th:each="article:${NewArticleList}"> |
|
<span class="badge" th:text="${#dates.format(article.created,'yyyy-MM-dd HH:mm')}"></span> |
|
<a th:href="@{/{id}.html(id=${article.id})}" target="_blank" th:text="${article.title}"></a> |
|
</li> |
|
</ul> |
|
</div> |
|
<div class="col-md-6"> |
|
<ul class="list-group"> |
|
<li class="list-group-item disabled"> |
|
<b>最新评论</b> |
|
</li> |
|
<li class="list-group-item" th:each="comment:${NewCommentList}"> |
|
<span class="badge" th:text="${#dates.format(comment.created,'yyyy-MM-dd HH:mm')}"></span> |
|
<a th:href="@{/{id}.html#comment-number(id=${comment.article.id})}" th:text="${comment.content}"></a> |
|
</li> |
|
|
|
</ul> |
|
</div> |
|
</div> |
|
</div> |
|
<th:block th:include="admin/common::footer"></th:block> |
|
|
|
</body> |
|
</html> |