parent
cf65859dbb
commit
6ee33414bc
|
@ -16,8 +16,15 @@
|
||||||
"Password": "admin",
|
"Password": "admin",
|
||||||
"Workspace": "{pwd}/data/user_workspaces/admin",
|
"Workspace": "{pwd}/data/user_workspaces/admin",
|
||||||
"LatestSessionContent": {
|
"LatestSessionContent": {
|
||||||
"FileTree": [],
|
"FileTree": [
|
||||||
"Files": [],
|
"D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest",
|
||||||
|
"D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello",
|
||||||
|
"D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time"
|
||||||
|
],
|
||||||
|
"Files": [
|
||||||
|
"D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\hello\\main.go",
|
||||||
|
"D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go"
|
||||||
|
],
|
||||||
"CurrentFile": ""
|
"CurrentFile": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,5 +47,10 @@
|
||||||
"restore_bottom": "底部窗口还原",
|
"restore_bottom": "底部窗口还原",
|
||||||
"file_format": "文件后缀",
|
"file_format": "文件后缀",
|
||||||
"keyword": "关键字",
|
"keyword": "关键字",
|
||||||
"initialise": "初始化"
|
"initialise": "初始化",
|
||||||
|
"user_guide": "用户指南",
|
||||||
|
"dev_guide": "开发指南",
|
||||||
|
"ver": "版本",
|
||||||
|
"dev_team": "开发团队",
|
||||||
|
"donate": "捐赠"
|
||||||
}
|
}
|
||||||
|
|
3
main.go
3
main.go
|
@ -187,7 +187,8 @@ func startHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
username := httpSession.Values["username"].(string)
|
username := httpSession.Values["username"].(string)
|
||||||
|
|
||||||
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(r), "locale": i18n.GetLocale(r), "username": username}
|
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(r), "locale": i18n.GetLocale(r),
|
||||||
|
"username": username, "ver": Ver}
|
||||||
|
|
||||||
t, err := template.ParseFiles("view/start.html")
|
t, err := template.ParseFiles("view/start.html")
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
<div class="fn-clear">
|
<div class="fn-clear">
|
||||||
<ul class="details">
|
<ul class="details">
|
||||||
<li>
|
<li>
|
||||||
用户名{{.username}}
|
{{.i18n.username}} {{.username}}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
用户指南 http://88250.gitbooks.io/wide-user-guide
|
{{.i18n.user_guide}} http://88250.gitbooks.io/wide-user-guide
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
开发指南 http://88250.gitbooks.io/wide-user-guide
|
{{.i18n.dev_guide}} http://88250.gitbooks.io/wide-user-guide
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Wide 信息
|
Wide
|
||||||
版本 {{.ver}}
|
{{.i18n.ver}} {{.ver}}
|
||||||
开发团队
|
{{.i18n.dev_team}}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
捐赠 http://b3log.org/donate.html
|
{{.i18n.donate}} http://b3log.org/donate.html
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue