forked from TruthHun/BookStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfans.html
More file actions
69 lines (65 loc) · 3.38 KB
/
fans.html
File metadata and controls
69 lines (65 loc) · 3.38 KB
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
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="zh-CN">
<head>
{{template "widgets/head.html" .}}
</head>
<body>
<div class="manual-reader manual-container">
{{template "widgets/header.html" .}}
<div class="ucenter">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-3">
{{template "user/base.html" .}}
</div>
<div class="col-xs-12 col-sm-8 col-md-9">
<div class="row">
<div class="col-xs-12">
{{template "user/tabs.html" .}}
</div>
<div class="col-xs-12">
<div class="ucenter-content">
{{range .Fans}}
<div class="col-xs-4 col-sm-2 col-md-2 text-center fans-item">
<a target="_blank" title="{{.Nickname}}" href="{{urlfor "UserController.Index" ":username" .Account}}" class="tooltips">
<img class="thumbnail img-circle " src="{{showImg .Avatar "avatar"}}" alt="">
</a>
<div>
<a target="_blank" title="{{.Nickname}}" href="{{urlfor "UserController.Index" ":username" .Account}}" class="fans-username tooltips">{{.Nickname}}</a>
</div>
<div>
{{if eq $.Member.MemberId .Uid}}
<a href="javascipt:;" class="btn btn-default disabled btn-sm"><i class="fa fa-heart-o"></i> 关注Ta</a>
{{else}}
{{if eq $.Tab "fans"}}
{{if (IsFollow .Uid $.Member.MemberId)}}
<a href="{{urlfor "BaseController.SetFollow" ":uid" .Uid}}" class="btn btn-default btn-sm btn-cancel"><i class="fa fa-heart text-danger"></i> 取消关注</a>
{{else}}
<a href="{{urlfor "BaseController.SetFollow" ":uid" .Uid}}" class="btn btn-success btn-sm btn-follow"><i class="fa fa-heart-o"></i> 关注Ta</a>
{{end}}
{{else}}
{{if (IsFollow .Uid $.Member.MemberId)}}
<a href="{{urlfor "BaseController.SetFollow" ":uid" .Uid}}" class="btn btn-default btn-sm btn-cancel"><i class="fa fa-heart text-danger"></i> 取消关注</a>
{{else}}
<a href="{{urlfor "BaseController.SetFollow" ":uid" .Uid}}" class="btn btn-success btn-sm btn-follow"><i class="fa fa-heart-o"></i> 关注Ta</a>
{{end}}
{{end}}
{{end}}
</div>
</div>
{{end}}
</div>
</div>
<div class="pagination-container">
{{.PageHtml}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{template "widgets/footer.html" .}}
<script src="/static/js/main.js?version={{$.Version}}"></script>
</body>
</html>