1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 20:06:09 +08:00
2021-05-13 17:50:39 +08:00

33 lines
1.1 KiB
Plaintext

{% if pager.total_pages > 0 %}
<table class="layui-table" lay-size="lg">
<colgroup>
<col>
<col>
<col>
<col width="12%">
</colgroup>
<thead>
<tr>
<th>文章</th>
<th>评论</th>
<th>浏览</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{% for item in pager.items %}
{% set article_url = url({'for':'home.article.show','id':item.id}) %}
{% set favorite_url = url({'for':'home.article.favorite','id':item.id}) %}
<tr>
<td><a href="{{ article_url }}" target="_blank">{{ item.title }}</a></td>
<td>{{ item.comment_count }}</td>
<td>{{ item.view_count }}</td>
<td class="center">
<button class="layui-btn layui-btn-sm layui-bg-red kg-delete" data-tips="确定要取消收藏吗?" data-url="{{ favorite_url }}">取消</button>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{{ partial('partials/pager') }}
{% endif %}