mirror of
https://github.com/syssecfsu/witty.git
synced 2024-11-01 09:39:26 +01:00
wip
This commit is contained in:
parent
11d1b2f185
commit
a56b48fc9f
@ -18,7 +18,7 @@
|
||||
<link rel="stylesheet" href="/assets/external/xterm.css" />
|
||||
<link rel="stylesheet" href="/assets/main.css" />
|
||||
|
||||
<title>{{.title}}</title>
|
||||
<title>WiTTY: {{.title}}</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
4
main.go
4
main.go
@ -49,7 +49,7 @@ func fillIndex(c *gin.Context) {
|
||||
})
|
||||
|
||||
c.HTML(http.StatusOK, "index.html", gin.H{
|
||||
"title": "Interactive terminal",
|
||||
"title": "interactive terminal",
|
||||
"path": "/ws_do",
|
||||
"players": players,
|
||||
})
|
||||
@ -83,7 +83,7 @@ func main() {
|
||||
rt.GET("/view/:sname", func(c *gin.Context) {
|
||||
sname := c.Param("sname")
|
||||
c.HTML(http.StatusOK, "term.html", gin.H{
|
||||
"title": "Viewer terminal",
|
||||
"title": "viewer terminal",
|
||||
"path": "/ws_view/" + sname,
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user