File tree 5 files changed +7
-8
lines changed
5 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -845,7 +845,7 @@ CREATE TABLE `interview_question` (
845
845
` id` int (11 ) unsigned NOT NULL AUTO_INCREMENT COMMENT ' 自增id' ,
846
846
` sn` bigint unsigned NOT NULL DEFAULT 0 COMMENT ' 题目序号,程序生成' ,
847
847
` question` varchar (1022 ) NOT NULL DEFAULT ' ' COMMENT ' 问题' ,
848
- ` answer` varchar (2046 ) NOT NULL DEFAULT ' ' COMMENT ' 答案' ,
848
+ ` answer` varchar (4094 ) NOT NULL DEFAULT ' ' COMMENT ' 答案' ,
849
849
` level` tinyint unsigned NOT NULL DEFAULT 0 COMMENT ' 问题难易级别:0-低;1-中;2-高' ,
850
850
` viewnum` int unsigned NOT NULL DEFAULT 0 COMMENT ' 浏览数' ,
851
851
` cmtnum` int unsigned NOT NULL DEFAULT 0 COMMENT ' 评论数' ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ <h3 id="featured">推荐下载 <a class="permalink" href="#featured">¶</a></h3>
39
39
< div class ="reqs "> Linux 2.6.23 or later, Intel 64-bit 处理器</ div >
40
40
{{else if eq .OS "macOS"}}
41
41
< div class ="platform "> Apple macOS</ div >
42
- < div class ="reqs "> macOS 10.12 or later, Intel 64-bit 处理器</ div >
42
+ < div class ="reqs "> macOS 10.13 or later, Intel 64-bit 处理器</ div >
43
43
{{else}}
44
44
< div class ="platform "> 源码</ div >
45
45
{{end}}
Original file line number Diff line number Diff line change 19
19
</ div >
20
20
{{end}}
21
21
22
-
23
22
{{with or .feeds .topics .articles .docs .subjects}}
24
23
25
24
{{range $i, $feed := $.feeds}}
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ <h1>{{.title}} 的题目如下</h1>
28
28
</ div >
29
29
< div class ="cell " id ="question-answer " style ="display: none; ">
30
30
< h3 > 答案解析:</ h3 >
31
- < div > {{noescape .question.Answer}}</ div >
31
+ < div class =" content " > {{noescape .question.Answer}}</ div >
32
32
</ div >
33
33
< div class ="cell row ">
34
- < div class ="col-md-6 col-sm -6 " style ="font-size: 13px; "> {{add .question.Viewnum 1}} 阅读</ div >
35
- < div id ="content-zan " class ="col-md-6 col-sm -6 " style ="text-align: right; ">
34
+ < div class ="col-md-6 col-xs -6 " style ="font-size: 13px; "> {{add .question.Viewnum 1}} 阅读</ div >
35
+ < div id ="content-zan " class ="col-md-6 col-xs -6 " style ="text-align: right; ">
36
36
< a href ="javascript: " style ="text-decoration: none; " title ="{{if .likeflag}}取消赞{{else}}赞{{end}} " data-objid ="{{.question.Id}} " data-objtype ="6 " data-flag ="{{.likeflag}} ">
37
37
< i class ="fa {{if .likeflag}}fa-thumbs-up{{else}}fa-thumbs-o-up{{end}} " aria-hidden ="true " style ="font-size: 18px; "> </ i > < span style ="font-size: 13px; "> 赞 < span class ="likenum "> {{if .question.Likenum}}{{.question.Likenum}}{{end}}</ span > </ span >
38
38
</ a >
Original file line number Diff line number Diff line change 27
27
{{end}}
28
28
< abbr class ="timeago " title ="{{.Ctime}} "> </ abbr > 评论了< strong > {{.Objinfo.type_name}}</ strong >
29
29
</ span >
30
- < a href ="{{.Objinfo.uri}}{{. Objid}} " title ="{{.Objinfo.title}} "> {{substring .Objinfo.title 60 "..."}}</ a >
30
+ < a href ="{{.Objinfo.uri}}{{if neq .Objtype 6}}{{. Objid}}{{end }} " title ="{{.Objinfo.title}} "> {{substring .Objinfo.title 60 "..."}}</ a >
31
31
</ div >
32
32
< div class ="content ">
33
33
< div class ="md-content "> {{substring .Content 100 "..."}}</ div >
@@ -113,4 +113,4 @@ <h3 class="title"><i class="glyphicon glyphicon-list"></i> {{.usernam
113
113
} ) ;
114
114
</ script >
115
115
116
- {{end}}
116
+ {{end}}
You can’t perform that action at this time.
0 commit comments