25 lines
1.3 KiB
HTML
Raw Normal View History

2023-03-25 02:04:42 +08:00
<div xmlns:th="https://www.thymeleaf.org"
th:with="donate=${!#strings.isEmpty(theme.config.post.donate_alipay) || !#strings.isEmpty(theme.config.post.donate_wechat)}">
<div th:if="${donate || type == 'Post'}" class="admire">
2023-03-21 10:49:35 +08:00
<div class="admire-content">
2023-03-25 02:04:42 +08:00
<button th:if="${donate}" class="donate">
<i class="fa fa-credit-card"></i>
<span>打赏</span>
<div class="donate-list">
<ol>
<li th:if="!#strings.isEmpty(theme.config.post.donate_alipay)"><img
th:src="${theme.config.post.donate_alipay}" alt="支付宝捐赠"></li>
<li th:if="!#strings.isEmpty(theme.config.post.donate_wechat)"><img
th:src="${theme.config.post.donate_wechat}" alt="微信捐赠"></li>
</ol>
</div>
</button>
<button th:if="${type == 'Post'}" class="agree like" data-id="${(post.id!0)?c}"
data-likes="${(post.likes!0)?c}">
<i class="fa fa-thumbs-o-up"></i>
<span><span th:text="${post.stats.upvote}"></span></span>
</button>
2023-03-21 10:49:35 +08:00
</div>
<span>如果觉得文章对你有用,请随意赞赏</span>
</div>
2023-03-25 02:04:42 +08:00
</div>