File tree 4 files changed +15
-2
lines changed
4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ CREATE TABLE IF NOT EXISTS `articles` (
310
310
PRIMARY KEY (` id` ),
311
311
UNIQUE KEY (` url` ),
312
312
KEY (` top` ),
313
+ KEY (` author_txt` ),
313
314
KEY (` domain` ),
314
315
KEY (` ctime` )
315
316
)ENGINE= InnoDB DEFAULT CHARSET= utf8 COMMENT ' 网络文章聚合表' ;
Original file line number Diff line number Diff line change 257
257
$ ( '.comment-list .words .reply' ) . removeClass ( 'light' ) ;
258
258
} , 2000 ) ;
259
259
callback ( ) ;
260
- } else {
260
+ } else {
261
261
alert ( data . error ) ;
262
262
}
263
263
} ,
Original file line number Diff line number Diff line change 126
126
您的账号未激活,不允许发布内容。< a href ="/account/edit " class ="alert-link "> 现在就去激活</ a >
127
127
</ div >
128
128
</ div >
129
+ {{else if eq .me.Balance 0}}
130
+ < div class ="row ">
131
+ < div class ="alert alert-warning text-center " role ="alert " style ="margin-bottom: 0px; ">
132
+ < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
133
+ 您的账号铜币不足,不允许发布内容,可 < a href ="/balance " class ="alert-link "> 领取</ a > 初始资本,或去 < a href ="/balance/add " class ="alert-link "> 充值</ a >
134
+ </ div >
135
+ </ div >
129
136
{{end}}
130
137
{{end}}
131
138
Original file line number Diff line number Diff line change 47
47
{{if eq .Objtype 0}}
48
48
< a class ="node " href ="/go/{{.Node.ename}} "> {{.Node.name}}</ a >
49
49
{{else if eq .Objtype 1}}
50
- < a class ="node " href ="/articles "> 文章</ a >
50
+ {{if .Tags}}
51
+ {{$tags := explode .Tags ","}}
52
+ < a class ="node " href ="/tag/{{index $tags 0}} "> {{index $tags 0}}</ a >
53
+ {{else}}
54
+ < a class ="node " href ="/articles "> 文章</ a >
55
+ {{end}}
51
56
{{else if eq .Objtype 2}}
52
57
< a class ="node " href ="/resources/cat/{{.Nid}} "> {{.Node.name}}</ a >
53
58
{{else if eq .Objtype 3}}
You can’t perform that action at this time.
0 commit comments