2024-08-31 14:25:44 +00:00
|
|
|
package admin
|
|
|
|
|
|
|
|
import (
|
|
|
|
"html/template"
|
|
|
|
"path/filepath"
|
|
|
|
)
|
|
|
|
|
|
|
|
var pages = map[string]*template.Template{
|
|
|
|
"index": template.Must(template.ParseFiles(
|
|
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
|
|
filepath.Join("views", "prideflag.html"),
|
|
|
|
filepath.Join("admin", "components", "release", "release-list-item.html"),
|
|
|
|
filepath.Join("admin", "views", "index.html"),
|
|
|
|
)),
|
|
|
|
|
|
|
|
"login": template.Must(template.ParseFiles(
|
|
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
|
|
filepath.Join("views", "prideflag.html"),
|
|
|
|
filepath.Join("admin", "views", "login.html"),
|
|
|
|
)),
|
|
|
|
"logout": template.Must(template.ParseFiles(
|
|
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
|
|
filepath.Join("views", "prideflag.html"),
|
|
|
|
filepath.Join("admin", "views", "logout.html"),
|
|
|
|
)),
|
|
|
|
|
|
|
|
"release": template.Must(template.ParseFiles(
|
|
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
|
|
filepath.Join("views", "prideflag.html"),
|
|
|
|
filepath.Join("admin", "views", "edit-release.html"),
|
|
|
|
)),
|
2024-09-03 07:07:45 +00:00
|
|
|
"artist": template.Must(template.ParseFiles(
|
|
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
|
|
filepath.Join("views", "prideflag.html"),
|
|
|
|
filepath.Join("admin", "views", "edit-artist.html"),
|
|
|
|
)),
|
2024-08-31 14:25:44 +00:00
|
|
|
"track": template.Must(template.ParseFiles(
|
|
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
|
|
filepath.Join("views", "prideflag.html"),
|
|
|
|
filepath.Join("admin", "components", "release", "release-list-item.html"),
|
|
|
|
filepath.Join("admin", "views", "edit-track.html"),
|
|
|
|
)),
|
|
|
|
}
|
|
|
|
|
|
|
|
var components = map[string]*template.Template{
|
|
|
|
"editcredits": template.Must(template.ParseFiles(filepath.Join("admin", "components", "credits", "editcredits.html"))),
|
|
|
|
"addcredit": template.Must(template.ParseFiles(filepath.Join("admin", "components", "credits", "addcredit.html"))),
|
|
|
|
"newcredit": template.Must(template.ParseFiles(filepath.Join("admin", "components", "credits", "newcredit.html"))),
|
|
|
|
|
|
|
|
"editlinks": template.Must(template.ParseFiles(filepath.Join("admin", "components", "links", "editlinks.html"))),
|
|
|
|
|
2024-08-31 18:29:57 +00:00
|
|
|
"edittracks": template.Must(template.ParseFiles(filepath.Join("admin", "components", "tracks", "edittracks.html"))),
|
2024-08-31 14:25:44 +00:00
|
|
|
"addtrack": template.Must(template.ParseFiles(filepath.Join("admin", "components", "tracks", "addtrack.html"))),
|
2024-08-31 18:29:57 +00:00
|
|
|
"newtrack": template.Must(template.ParseFiles(filepath.Join("admin", "components", "tracks", "newtrack.html"))),
|
2024-08-31 14:25:44 +00:00
|
|
|
}
|