forked from phith0n/Minos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookmark.htm
59 lines (55 loc) · 2.41 KB
/
bookmark.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% extends "base.htm" %}
{% block header_title %}{{ current_user.get('username') }}的书签{% end %}
{% block body %}
{% include "header.htm" %}
<div class="am-container">
<div class="am-g">
<div class="am-u-lg-9">
<div class="am-panel am-panel-default">
<div class="am-panel-hd">
<ol class="minos-breadcrumb am-breadcrumb am-breadcrumb-slash">
<li><a href="/">首页</a></li>
<li class="am-active">{{ current_user.get('username') }} 的书签</li>
</ol>
</div>
<div class="am-panel-bd minos-sorts">
总共收藏了{{ count }}篇文章
</div>
<table class="am-table minos-list am-text-sm am-table-bordered am-table-hover am-scrollable-horizontal">
<tr class="null am-primary">
<td>作者</td>
<td width="68%">标题</td>
<td class="status" width="15%">板块</td>
<td class="am-text-center" width="10%">操作</td>
</tr>
{% for post in bookmark %}
<tr class="row">
<td class="am-link-muted">{{ post['user'] }}</td>
<td><a href="/post/{{ post['id'] }}">{{ post['title'] }}</a></td>
<td class="status"><a href="/sort/{{ post.get('sort').get('_id') }}">{{ post.get("sort").get("name") }}</a></td>
<td class="am-text-center">
<form method="post">
<a class="am-badge am-badge-danger cancel-bookmark">取消</a>
<input type="hidden" name="postid" value="{{ post['id'] }}">
{% raw xsrf_form_html() %}
</form>
</td>
</tr>
{% end %}
</table>
<div class="am-panel-footer">
{% raw pagenav(now = page, count = count, each = each, url = '/user/bookmark/%d') %}
<div class="am-cf"></div>
</div>
</div>
</div>
<div class="am-u-lg-3">
{% include "self.htm" %}
</div>
</div>
</div>
{% end %}
{% block footer_static %}
<script src="{{ static_url('assets/js/app.js') }}"></script>
<script src="{{ static_url('assets/js/like.js') }}"></script>
{% end %}