Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b592faf

Browse files
committed
修复评论列表页跳转链接bug
1 parent 80aee2f commit b592faf

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

config/db.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ CREATE TABLE `interview_question` (
845845
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
846846
`sn` bigint unsigned NOT NULL DEFAULT 0 COMMENT '题目序号,程序生成',
847847
`question` varchar(1022) NOT NULL DEFAULT '' COMMENT '问题',
848-
`answer` varchar(2046) NOT NULL DEFAULT '' COMMENT '答案',
848+
`answer` varchar(4094) NOT NULL DEFAULT '' COMMENT '答案',
849849
`level` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '问题难易级别:0-低;1-中;2-高',
850850
`viewnum` int unsigned NOT NULL DEFAULT 0 COMMENT '浏览数',
851851
`cmtnum` int unsigned NOT NULL DEFAULT 0 COMMENT '评论数',

template/download/go.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h3 id="featured">推荐下载 <a class="permalink" href="#featured">¶</a></h3>
3939
<div class="reqs">Linux 2.6.23 or later, Intel 64-bit 处理器</div>
4040
{{else if eq .OS "macOS"}}
4141
<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>
4343
{{else}}
4444
<div class="platform">源码</div>
4545
{{end}}

template/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
</div>
2020
{{end}}
2121

22-
2322
{{with or .feeds .topics .articles .docs .subjects}}
2423

2524
{{range $i, $feed := $.feeds}}

template/interview/question.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ <h1>{{.title}} 的题目如下</h1>
2828
</div>
2929
<div class="cell" id="question-answer" style="display: none;">
3030
<h3>答案解析:</h3>
31-
<div>{{noescape .question.Answer}}</div>
31+
<div class="content">{{noescape .question.Answer}}</div>
3232
</div>
3333
<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;">
3636
<a href="javascript:" style="text-decoration: none;" title="{{if .likeflag}}取消赞{{else}}赞{{end}}" data-objid="{{.question.Id}}" data-objtype="6" data-flag="{{.likeflag}}">
3737
<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>
3838
</a>

template/user/comments.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{{end}}
2828
<abbr class="timeago" title="{{.Ctime}}"></abbr> 评论了<strong>{{.Objinfo.type_name}}</strong>
2929
</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>
3131
</div>
3232
<div class="content">
3333
<div class="md-content">{{substring .Content 100 "..."}}</div>
@@ -113,4 +113,4 @@ <h3 class="title"><i class="glyphicon glyphicon-list"></i>&nbsp;&nbsp;{{.usernam
113113
});
114114
</script>
115115

116-
{{end}}
116+
{{end}}

0 commit comments

Comments
 (0)