Fixed webpages so they now load [ci skip]

This commit is contained in:
MichaelOultram 2015-08-13 15:16:10 +01:00
parent c4ffe8810b
commit c3d733ae35
2 changed files with 2 additions and 2 deletions

View file

@ -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
View file

@ -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