登录页细化
This commit is contained in:
parent
ad52b9f42f
commit
cac2e23db4
|
@ -15,21 +15,9 @@
|
|||
"Password": "admin",
|
||||
"Workspace": "{pwd}/data/user_workspaces/admin",
|
||||
"LatestSessionContent": {
|
||||
"FileTree": [
|
||||
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest",
|
||||
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello",
|
||||
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time",
|
||||
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\pkg",
|
||||
"D:\\go\\src\\pkg",
|
||||
"D:\\go\\src\\pkg\\archive",
|
||||
"D:\\go\\src\\pkg\\archive\\tar",
|
||||
"D:\\go\\src\\pkg\\archive\\tar\\testdata"
|
||||
],
|
||||
"Files": [
|
||||
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello\\main.go",
|
||||
"E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go"
|
||||
],
|
||||
"CurrentFile": "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go"
|
||||
"FileTree": [],
|
||||
"Files": [],
|
||||
"CurrentFile": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"debug": "调试",
|
||||
"help": "帮助",
|
||||
"check_update": "检查更新",
|
||||
"report_issues": "提建议",
|
||||
"report_issues": "建议",
|
||||
"wide_doc": "Wide 文档",
|
||||
"about": "关于",
|
||||
"start_page": "起始页",
|
||||
|
|
5
main.go
5
main.go
|
@ -23,6 +23,9 @@ import (
|
|||
"github.com/golang/glog"
|
||||
)
|
||||
|
||||
// 当前 Wide 版本.
|
||||
const Ver = "1.0.0-dev"
|
||||
|
||||
// Wide 中唯一一个 init 函数.
|
||||
func init() {
|
||||
// TODO:默认启动参数
|
||||
|
@ -53,7 +56,7 @@ func loginHandler(w http.ResponseWriter, r *http.Request) {
|
|||
if r.Method == "GET" {
|
||||
// 展示登录页面
|
||||
|
||||
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(r), "locale": i18n.GetLocale(r)}
|
||||
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(r), "locale": i18n.GetLocale(r), "ver": Ver}
|
||||
|
||||
t, err := template.ParseFiles("view/login.html")
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<div class="wrapper fn-clear">
|
||||
<h1 class="fn-left">Wide</h1>
|
||||
<ul class="fn-right">
|
||||
<li><a href="">GitHub</a></li>
|
||||
<li><a href="">Help</a></li>
|
||||
<li><a href="">Advance</a></li>
|
||||
<li><a href="https://github.com/b3log/wide" target="_blank">GitHub</a></li>
|
||||
<li><a href="https://www.gitbook.io/book/88250/wide-user-guide" target="_blank">{{.i18n.help}}</a></li>
|
||||
<li><a href="https://github.com/b3log/wide/issues/new" target="_blank">{{.i18n.report_issues}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -32,7 +32,7 @@
|
|||
</div>
|
||||
<div class="footer">
|
||||
<div class="wrapper">
|
||||
© 2014 B3LOG.ORG 1.0.0
|
||||
Ver {{.ver}}, © 2014 <a href="http://b3log.org" target="_blank">B3LOG.ORG</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue