This commit is contained in:
Zhi Wang 2022-01-11 21:58:43 -05:00
parent 11d1b2f185
commit a56b48fc9f
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
<link rel="stylesheet" href="/assets/external/xterm.css" /> <link rel="stylesheet" href="/assets/external/xterm.css" />
<link rel="stylesheet" href="/assets/main.css" /> <link rel="stylesheet" href="/assets/main.css" />
<title>{{.title}}</title> <title>WiTTY: {{.title}}</title>
</head> </head>
<body> <body>

View File

@ -49,7 +49,7 @@ func fillIndex(c *gin.Context) {
}) })
c.HTML(http.StatusOK, "index.html", gin.H{ c.HTML(http.StatusOK, "index.html", gin.H{
"title": "Interactive terminal", "title": "interactive terminal",
"path": "/ws_do", "path": "/ws_do",
"players": players, "players": players,
}) })
@ -83,7 +83,7 @@ func main() {
rt.GET("/view/:sname", func(c *gin.Context) { rt.GET("/view/:sname", func(c *gin.Context) {
sname := c.Param("sname") sname := c.Param("sname")
c.HTML(http.StatusOK, "term.html", gin.H{ c.HTML(http.StatusOK, "term.html", gin.H{
"title": "Viewer terminal", "title": "viewer terminal",
"path": "/ws_view/" + sname, "path": "/ws_view/" + sname,
}) })
}) })