1 Star 0 Fork 6

dengkuanchina/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
articles.html 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
梦海澜心 提交于 2018-03-26 15:25 +08:00 . 6.0
<div th:if="${#lists.isEmpty(articlePage.datas)}">
<div class="alert alert-info">当前没有任何文章</div>
</div>
<div th:unless="${#lists.isEmpty(articlePage.datas)}">
<div class="well" th:each="article : ${articlePage.datas}">
<h4>
<span th:if="${article.hasLock()}" class="glyphicon glyphicon-lock"
style="margin-right: 5px"></span><span
th:if="${article.level != null}">【置顶】</span> <span
th:if="${space == null}"><a
th:href="${urls.getUrl(article.space)}"
th:text="'【'+${article.space.name}+'】'"></a></span> <a
th:href="${urls.getUrl(article)}" th:utext="${article.title}"> </a>
</h4>
<div style="margin-top: 5px; margin-bottom: 10px"
th:unless="${#lists.isEmpty(article.tags)}">
<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> <span
th:each="tag : ${article.tags}" style="margin-right: 10px"> <a
th:href=" ${urls.getArticlesUrlHelper().getArticlesUrl(tag)}"
th:utext=" ${tag.name}"></a>
</span>
</div>
<div style="margin-top: 5px; margin-bottom: 10px">
<span class="glyphicon glyphicon-time" aria-hidden="true"></span>  <span
th:text="${times.format(article.pubDate,'yyyy-MM-dd HH:mm')}"
th:data-timestamp="${times.getTime(article.pubDate)}"></span>
</div>
<div style="margin-top: 5px; margin-bottom: 10px">
<span aria-hidden="true" class="glyphicon glyphicon-fire"
title="点击次数"></span>&nbsp;<span th:text="${article.hits}"> </span>
  <span class="glyphicon glyphicon-comment" title="评论数"
aria-hidden="true"></span>&nbsp;<span th:text="${article.comments}"> </span>
</div>
<div th:if="${article.space == space || articlePage.param.hasQuery()}">
<div th:utext="${article.summary}"
th:unless="${article.hasLock() && user == null}"></div>
<div th:if="${article.hasLock() && user == null}">
<strong th:text="${messages.getMessage('article.locked','文章受锁保护')}"></strong>
</div>
</div>
</div>
</div>
<div th:if="${articlePage.totalPage > 1}">
<ul class="pagination">
<li
th:each=" i : ${#numbers.sequence(articlePage.listbegin, articlePage.listend-1)}"
th:class="${(i == articlePage.currentPage) ? 'active' : ''}"><a
th:href="${urls.getArticlesUrlHelper().getArticlesUrl(articlePage.param,i)}"
th:text="${i}"></a></li>
</ul>
</div>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dengkuanchina/blog.git
git@gitee.com:dengkuanchina/blog.git
dengkuanchina
blog
blog
v6.1

搜索帮助