Fixed webpages so they now load [ci skip]
This commit is contained in:
parent
c4ffe8810b
commit
c3d733ae35
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="onLoad();">
|
||||
<body onload="onLoad();" bgcolor="#FFFFFF">
|
||||
<h1>Add Song Form</h1>
|
||||
<input id="textbox" type="text" />
|
||||
<input id="add" type="button" value="Add Song"
|
||||
|
|
2
web.go
2
web.go
|
@ -75,7 +75,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
|
|||
webpage = "index"
|
||||
}
|
||||
|
||||
t, err := template.ParseFiles(fmt.Sprintf("%s/.mumbledj/songs/%s.html", dj.homeDir, webpage))
|
||||
t, err := template.ParseFiles(fmt.Sprintf("%s/.mumbledj/web/%s.html", dj.homeDir, webpage))
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
|
|
Reference in a new issue