Nicer handling of dead tabs, introduced version.
This commit is contained in:
parent
0c0811a5fc
commit
5a15824ed5
3 changed files with 26 additions and 11 deletions
8
main.go
8
main.go
|
|
@ -16,6 +16,8 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
const VERSION = "v1"
|
||||
|
||||
var (
|
||||
flagVerbose bool
|
||||
flagWsURL string
|
||||
|
|
@ -70,7 +72,11 @@ func pageIndex(w http.ResponseWriter, r *http.Request) { // {{{
|
|||
return
|
||||
}
|
||||
|
||||
tmpl.Execute(w, sites)
|
||||
data := map[string]any{
|
||||
"Sites": sites,
|
||||
"VERSION": VERSION,
|
||||
}
|
||||
tmpl.Execute(w, data)
|
||||
} // }}}
|
||||
func pageCSS(w http.ResponseWriter, r *http.Request) { // {{{
|
||||
w.Header().Add("Content-Type", "text/css")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue