mirror of
https://github.com/syssecfsu/witty.git
synced 2025-03-28 10:31:00 +01:00
WIP
This commit is contained in:
parent
d85073e1e5
commit
4d06a2c710
5
main.go
5
main.go
@ -105,7 +105,7 @@ func fillIndex(c *gin.Context) {
|
|||||||
if !strings.HasSuffix(fname, ".rec") {
|
if !strings.HasSuffix(fname, ".rec") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
fsize := finfo.Size()
|
fsize := finfo.Size() / 1024
|
||||||
duration := getDuration(fname)
|
duration := getDuration(fname)
|
||||||
|
|
||||||
records = append(records,
|
records = append(records,
|
||||||
@ -168,6 +168,7 @@ func main() {
|
|||||||
"title": "interactive terminal",
|
"title": "interactive terminal",
|
||||||
"path": "/ws_new/" + id,
|
"path": "/ws_new/" + id,
|
||||||
"id": id,
|
"id": id,
|
||||||
|
"logo": "keyboard",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -182,6 +183,8 @@ func main() {
|
|||||||
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/" + id,
|
"path": "/ws_view/" + id,
|
||||||
|
"id": id,
|
||||||
|
"logo": "view",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user