File tree 9 files changed +16
-16
lines changed 9 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ <h1 id="title" data-id="{{.article.Id}}">
90
90
{{if .next}}< div > < a href ="/articles/{{.next.Id}} " title ="{{.next.Title}} "> » </ a > 下一篇: < a href ="/articles/{{.next.Id}} " title ="{{.next.Title}} "> {{.next.Title}}</ a > </ div > {{end}}
91
91
</ div >
92
92
<!-- 评论 -->
93
- < div class ="page-comment " data-objid ="{{.article.Id}} " data-objtype ="1 " {{if .me}}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
93
+ < div class ="page-comment " data-objid ="{{.article.Id}} " data-objtype ="1 " {{if .me.Uid }}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
94
94
< div class ="words hide ">
95
95
< h3 > < span class ="cmtnum "> {{.article.Cmtnum}}</ span > 条评论</ h3 >
96
96
< ul class ="list-unstyled ">
97
97
</ ul >
98
98
</ div >
99
99
< div class ="comment-title ">
100
100
< h2 > 文章点评:</ h2 >
101
- {{if .me}}
101
+ {{if .me.Uid }}
102
102
{{else}}
103
103
< span class ="h2-tip ">
104
104
(您需要 < a class ="c-log " href ="javascript:openPop('#login-pop'); "> 登录</ a > 后才能评论 < a href ="/user/register " class ="c-reg "> 没有账号</ a > ?)</ span >
Original file line number Diff line number Diff line change @@ -91,15 +91,15 @@ <h4>目录</h4>
91
91
< hr class ="dashed ">
92
92
93
93
<!-- 评论 -->
94
- < div class ="page-comment " data-objid ="{{.book.Id}} " data-objtype ="1 " {{if .me}}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
94
+ < div class ="page-comment " data-objid ="{{.book.Id}} " data-objtype ="1 " {{if .me.Uid }}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
95
95
< div class ="words hide ">
96
96
< h3 > < span class ="cmtnum "> {{.book.Cmtnum}}</ span > 条评论</ h3 >
97
97
< ul class ="list-unstyled ">
98
98
</ ul >
99
99
</ div >
100
100
< div class ="comment-title ">
101
101
< h2 > 文章点评:</ h2 >
102
- {{if .me}}
102
+ {{if .me.Uid }}
103
103
{{else}}
104
104
< span class ="h2-tip ">
105
105
(您需要 < a class ="c-log " href ="javascript:openPop('#login-pop'); "> 登录</ a > 后才能评论 < a href ="/user/register " class ="c-reg "> 没有账号</ a > ?)</ span >
Original file line number Diff line number Diff line change 90
90
< input type ="text " name ="q " class ="form-control search-query " placeholder ="搜索 " value ="{{if .q}}{{.q}}{{end}} ">
91
91
</ form >
92
92
< ul class ="nav navbar-nav navbar-right " id ="userbar ">
93
- {{if .me}}
93
+ {{if .me.Uid }}
94
94
< li >
95
95
< a href ="/message/system " id ="user_message_count "> < span class ="badge{{if .me.MsgNum}} badge-warning{{end}} "> {{.me.MsgNum}}</ span > </ a >
96
96
</ li >
116
116
</ header >
117
117
< div class ="wrapper " id ="wrapper ">
118
118
< div class ="container " role ="main ">
119
- {{if .me}}
119
+ {{if .me.Uid }}
120
120
{{if eq .me.Status 0}}
121
121
< div class ="row ">
122
122
< div class ="alert alert-warning text-center " role ="alert " style ="margin-bottom: 0px; ">
163
163
</ footer >
164
164
< div id ="gotop "> </ div >
165
165
166
- {{if .me}}
166
+ {{if .me.Uid }}
167
167
< input type ="hidden " id ="is_login_status " value ="1 " />
168
168
{{else}}
169
169
< input type ="hidden " id ="is_login_status " value ="0 " />
Original file line number Diff line number Diff line change 6
6
< div class ="col-lg-9 col-md-8 col-sm-7 ">
7
7
< ol class ="breadcrumb ">
8
8
< li > < a href ="/ "> < i class ="glyphicon glyphicon-home "> </ i > 首页</ a > </ li >
9
- < li class ="active "> {{if .me}}{{if eq .me.Username .user.Username}}我的{{else}}{{.user.Username}}的{{end}}{{else}}{{.user.Username}}的{{end}}收藏</ li >
9
+ < li class ="active "> {{if .me.Uid }}{{if eq .me.Username .user.Username}}我的{{else}}{{.user.Username}}的{{end}}{{else}}{{.user.Username}}的{{end}}收藏</ li >
10
10
</ ol >
11
11
< ul class ="nav nav-tabs " role ="tablist ">
12
12
< li role ="presentation " class ="{{if eq .objtype 1}}active{{end}} "> < a href ="/favorites/{{.user.Username}} "> 博文</ a > </ li >
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ <h3><a href="javascript:">学习资料</a></h3>
203
203
</ div >
204
204
< div class ="col-lg-3 col-md-4 col-sm-5 ">
205
205
< div class ="row box_white sidebar ">
206
- {{if .me}}
206
+ {{if .me.Uid }}
207
207
<!-- <div class="box">
208
208
<div class="avatar-area pull-left">
209
209
<span class="avatar"><a href="/account/edit#change-avatar"><img alt="个人首页" width="80" height="80" src="{{gravatar .me.Avatar .me.Email 80 .is_https}}" class="img-circle tool-tip" data-toggle="tooltip" data-placement="left" title="更换头像"></a></span>
Original file line number Diff line number Diff line change 89
89
</ div >
90
90
</ div >
91
91
<!-- 评论 -->
92
- < div class ="page-comment " data-objid ="{{.project.Id}} " data-objtype ="4 " {{if .me}}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
92
+ < div class ="page-comment " data-objid ="{{.project.Id}} " data-objtype ="4 " {{if .me.Uid }}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
93
93
< div class ="words hide ">
94
94
< h3 > < span class ="cmtnum "> {{.project.Cmtnum}}</ span > 条评论</ h3 >
95
95
< ul class ="list-unstyled ">
96
96
</ ul >
97
97
</ div >
98
98
< div class ="comment-title ">
99
99
< h2 > 项目点评:</ h2 >
100
- {{if .me}}
100
+ {{if .me.Uid }}
101
101
{{else}}
102
102
< span class ="h2-tip ">
103
103
(您需要 < a class ="c-log " href ="javascript:openPop('#login-pop'); "> 登录</ a > 后才能评论 < a href ="/user/register " class ="c-reg "> 没有账号</ a > ?)</ span >
Original file line number Diff line number Diff line change 65
65
< div id ="hm_t_56958 " style ="margin:0 auto;max-width:790px; "> </ div >
66
66
67
67
<!-- 评论 -->
68
- < div class ="page-comment " data-objid ="{{.resource.id}} " data-objtype ="2 " {{if .me}}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
68
+ < div class ="page-comment " data-objid ="{{.resource.id}} " data-objtype ="2 " {{if .me.Uid }}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
69
69
< div class ="words hide ">
70
70
< h3 > < span class ="cmtnum "> {{.resource.cmtnum}}</ span > 条评论</ h3 >
71
71
< ul class ="list-unstyled ">
72
72
</ ul >
73
73
</ div >
74
74
< div class ="comment-title ">
75
75
< h2 > 资源评论:</ h2 >
76
- {{if .me}}
76
+ {{if .me.Uid }}
77
77
{{else}}
78
78
< span class ="h2-tip ">
79
79
(您需要 < a class ="c-log " href ="javascript:openPop('#login-pop'); "> 登录</ a > 后才能评论 < a href ="/user/register " class ="c-reg "> 没有账号</ a > ?)</ span >
Original file line number Diff line number Diff line change 65
65
</ div >
66
66
</ div >
67
67
<!-- 评论 -->
68
- < div class ="page-comment " data-objid ="{{.topic.tid}} " data-objtype ="0 " {{if .me}}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
68
+ < div class ="page-comment " data-objid ="{{.topic.tid}} " data-objtype ="0 " {{if .me.Uid }}data-username ="{{.me.Username}} " data-uid ="{{.me.Uid}} " data-avatar ="{{gravatar .me.Avatar .me.Email 48 .is_https}} "{{end}} >
69
69
< div class ="words hide ">
70
70
< h3 > < span class ="cmtnum "> {{.topic.reply}}</ span > 条回复</ h3 >
71
71
< ul class ="list-unstyled ">
72
72
</ ul >
73
73
</ div >
74
74
< div class ="comment-title ">
75
75
< h2 > 主题回复:</ h2 >
76
- {{if .me}}
76
+ {{if .me.Uid }}
77
77
{{else}}
78
78
< span class ="h2-tip ">
79
79
(您需要 < a class ="c-log " href ="javascript:openPop('#login-pop'); "> 登录</ a > 后才能回复 < a href ="/user/register " class ="c-reg "> 没有账号</ a > ?)</ span >
Original file line number Diff line number Diff line change 7
7
< ol class ="breadcrumb ">
8
8
< li > < a href ="/ "> < i class ="glyphicon glyphicon-home "> </ i > 首页</ a > </ li >
9
9
< li > < a href ="/users "> 会员</ a > </ li >
10
- < li class ="active "> {{if .me}}{{if eq .me.Username .user.Username}}我的{{else}}{{.user.Username}}的{{end}}{{else}}{{.user.Username}}的{{end}}信息</ li >
10
+ < li class ="active "> {{if .me.Uid }}{{if eq .me.Username .user.Username}}我的{{else}}{{.user.Username}}的{{end}}{{else}}{{.user.Username}}的{{end}}信息</ li >
11
11
</ ol >
12
12
< div class ="box_white ">
13
13
< div class ="userinfo ">
You can’t perform that action at this time.
0 commit comments