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

Skip to content

Commit e165ecf

Browse files
committed
调整样式
1 parent a80ddbb commit e165ecf

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

src/http/http.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"github.com/polaris1119/config"
2525
"github.com/polaris1119/goutils"
2626
"github.com/polaris1119/logger"
27+
"github.com/polaris1119/times"
2728
)
2829

2930
var Store = sessions.NewCookieStore([]byte(config.ConfigFile.MustValue("global", "cookie_secret")))
@@ -185,6 +186,7 @@ func Render(ctx echo.Context, contentTpl string, data map[string]interface{}) er
185186
}
186187

187188
data["pos_ad"] = logic.DefaultAd.FindAll(ctx, ctx.Path())
189+
data["cur_time"] = times.Format("Y-m-d H:i:s")
188190

189191
// TODO:每次查询有点影响性能
190192
hasLoginMisson := false

static/css/main.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ a.tab_current:hover {background-color: #445; color: #fff; text-decoration: none;
134134
.sidebar .sb-content .image-list ul li { height: 95px; margin-top: 10px; }
135135

136136
.sidebar .sb-content .reading-list ul {margin: 2px 15px;}
137-
.sidebar .sb-content .reading-list ul li a {text-decoration: none;color: #0F2ED1;}
138-
.sidebar .sb-content .reading-list ul li a:hover { color: #d54f4b; }
139137

140138
.sidebar .sb-content .node-list ul {margin: 2px 15px;}
141139
.sidebar .sb-content .node-list ul li {display: inline;}

template/articles/detail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ <h1>
3333
<a id="edit" class="op" href="javascript:" title="编辑">编辑</a>
3434
{{end}}
3535
</small>
36+
<small class="gray" style="margin-left: 20px;"><span class="timeago" title="{{.cur_time}}"></span> 开始浏览</small>
3637
</div>
3738
{{if gt (distanceDay .article.Ctime) 100 }}
3839
<div class="outdated">这是一个创建于 <span title="{{.article.Ctime}}" class="timeago"></span> 的文章,其中的信息可能已经有所发展或是发生改变。</div>

template/common/my_info.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
<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>
66
</div>
77
<div class="profile-show pull-left">
8+
{{if .me.Monlog}}
89
<div class="user-name"><a href="/user/{{.me.Username}}">{{.me.Username}}</a></div>
910
<small class="f12 cc">{{.me.Monlog}}</small>
1011
<div class="sep5"></div>
12+
{{else}}
13+
<p></p>
14+
<p class="user-name"><a href="/user/{{.me.Username}}">{{.me.Username}}</a></p>
15+
{{end}}
1116
<p><a href="/account/edit">个人资料设置</a></p>
1217
</div>
1318
</div>

template/topics/detail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h1>
2828
<a class="op" href="/topics/modify?tid={{.topic.tid}}" title="编辑">编辑</a>
2929
{{end}}
3030
</small>
31+
<small class="gray" style="margin-left: 20px;"><span class="timeago" title="{{.cur_time}}"></span> 开始浏览</small>
3132
</div>
3233
{{if gt (distanceDay .topic.ctime) 100 }}
3334
<div class="outdated">这是一个创建于 <span title="{{.topic.ctime}}" class="timeago"></span> 的主题,其中的信息可能已经有所发展或是发生改变。</div>

0 commit comments

Comments
 (0)