1+ <!DOCTYPE html>
2+ < html lang ="zh-CN ">
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1, user-scalable=no ">
7+
8+ < title > 收录管理 - {{.SITE_NAME}}</ title >
9+
10+ < link href ="/static/bootstrap/css/bootstrap.min.css " rel ="stylesheet ">
11+ < link href ="/static/font-awesome/css/font-awesome.min.css " rel ="stylesheet ">
12+
13+ < link href ="/static/css/main.css?version={{$.Version}} " rel ="stylesheet ">
14+ {{/*< script src ="/static/html5shiv/3.7.3/html5shiv.min.js "> </ script > */}}
15+ < script src ="/static/html5shiv/3.7.3/html5shiv.min.js "> </ script >
16+ {{/*< script src ="/static/respond.js/1.4.2/respond.min.js "> </ script > */}}
17+ < script src ="/static/respond.js/1.4.2/respond.min.js "> </ script >
18+
19+ < link rel ="stylesheet " href ="/static/css/toast.css ">
20+ < style > .content-block {max-width : 350px ;word-break : break-all;}</ style >
21+ </ head >
22+ < body >
23+ < div class ="manual-reader ">
24+ {{template "widgets/header.html" .}}
25+ < div class ="container manual-body ">
26+ < div class ="row ">
27+ < div class ="page-left ">
28+ {{template "manager/menu.html" .}}
29+ </ div >
30+ < div class ="page-right ">
31+ < div class ="m-box ">
32+ < div class ="box-head ">
33+ < strong class ="box-title "> 收录管理</ strong >
34+ </ div >
35+ </ div >
36+ < div class ="box-body " id ="bookList ">
37+ < table class ="table table-hover table-striped ">
38+ < thead >
39+ < tr >
40+ < th > #</ th >
41+ < th > 用户</ th >
42+ < th > 内容</ th >
43+ < th > 留言</ th >
44+ < th > 时间</ th >
45+ < th > 状态</ th >
46+ < th > 操作</ th >
47+ </ tr >
48+ </ thead >
49+ < tbody >
50+ {{range .Books}}
51+ < tr >
52+ < td > {{.Id}}</ td >
53+ < td >
54+ < a href ="{{urlfor "UserController.Index " ":username" .Account}}" target="_blank "> {{.Nickname}}</ a >
55+ </ td >
56+ < td >
57+ < a href ="{{.Url}} " target ="_blank "> 《{{.Title}}》</ a >
58+ </ td >
59+ < td >
60+ < div class ="help-block conten-block "> {{.Message}}</ div >
61+ </ td >
62+ < td > {{.CreatedAtStr}}</ td >
63+ < td >
64+ {{if .Status}}
65+ < span class ="text-success "> 已处理</ span >
66+ {{else}}
67+ < span class ="text-danger "> 待处理</ span >
68+ {{end}}
69+ </ td >
70+ < td >
71+ {{if .Status}}
72+ < a href ="{{urlfor "ManagerController.UpdateSubmitBook "}}?id={{.Id}}&field =status&value=0" class="ajax-get"> 待处理</ a >
73+ {{else}}
74+ < a href ="{{urlfor "ManagerController.UpdateSubmitBook "}}?id={{.Id}}&field =status&value=1" class="ajax-get"> 已处理</ a >
75+ {{end}}
76+ < a href ="{{urlfor "ManagerController.DeleteSubmitBook "}}?id={{.Id}} " class="text-danger confirm ajax-get"> 删除</ a >
77+ </ td >
78+ </ tr >
79+ {{end}}
80+ </ tbody >
81+ </ table >
82+
83+ {{.PageHtml}}
84+ </ div >
85+ </ div >
86+ </ div >
87+ </ div >
88+ </ div >
89+
90+ {{/*< script src ="/static/jquery/1.12.4/jquery.min.js " type ="text/javascript "> </ script > */}}
91+ < script src ="/static/jquery/1.12.4/jquery.min.js " type ="text/javascript "> </ script >
92+ {{/*< script src ="/static/bootstrap/js/bootstrap.min.js " type ="text/javascript "> </ script > */}}
93+ < script src ="/static/bootstrap/js/bootstrap.min.js " type ="text/javascript "> </ script >
94+ < script src ="{{$.StaticDomain}}/static/js/toast.script.js "> </ script >
95+ < script src ="/static/js/main.js?version={{$.Version}} " type ="text/javascript "> </ script >
96+ </ body>
97+ </ html>
0 commit comments