parent
cf65859dbb
commit
6ee33414bc
|
@ -16,8 +16,15 @@
|
|||
"Password": "admin",
|
||||
"Workspace": "{pwd}/data/user_workspaces/admin",
|
||||
"LatestSessionContent": {
|
||||
"FileTree": [],
|
||||
"Files": [],
|
||||
"FileTree": [
|
||||
"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": ""
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,5 +47,10 @@
|
|||
"restore_bottom": "底部窗口还原",
|
||||
"file_format": "文件后缀",
|
||||
"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)
|
||||
|
||||
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")
|
||||
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
<div class="fn-clear">
|
||||
<ul class="details">
|
||||
<li>
|
||||
用户名{{.username}}
|
||||
{{.i18n.username}} {{.username}}
|
||||
</li>
|
||||
<li>
|
||||
用户指南 http://88250.gitbooks.io/wide-user-guide
|
||||
{{.i18n.user_guide}} http://88250.gitbooks.io/wide-user-guide
|
||||
</li>
|
||||
<li>
|
||||
开发指南 http://88250.gitbooks.io/wide-user-guide
|
||||
{{.i18n.dev_guide}} http://88250.gitbooks.io/wide-user-guide
|
||||
</li>
|
||||
<li>
|
||||
Wide 信息
|
||||
版本 {{.ver}}
|
||||
开发团队
|
||||
Wide
|
||||
{{.i18n.ver}} {{.ver}}
|
||||
{{.i18n.dev_team}}
|
||||
</li>
|
||||
<li>
|
||||
捐赠 http://b3log.org/donate.html
|
||||
{{.i18n.donate}} http://b3log.org/donate.html
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="news">
|
||||
aaa
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue