54 lines
2 KiB
Go
54 lines
2 KiB
Go
package templates
|
|
|
|
import (
|
|
"html/template"
|
|
"path/filepath"
|
|
)
|
|
|
|
var MusicTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("view", "prideflag.html"),
|
|
filepath.Join("admin", "components", "release", "release-list-item.html"),
|
|
filepath.Join("admin", "views", "music.html"),
|
|
))
|
|
|
|
var ReleaseTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("view", "prideflag.html"),
|
|
filepath.Join("admin", "views", "edit-release.html"),
|
|
))
|
|
var ArtistTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("view", "prideflag.html"),
|
|
filepath.Join("admin", "views", "edit-artist.html"),
|
|
))
|
|
var TrackTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("view", "prideflag.html"),
|
|
filepath.Join("admin", "components", "release", "release-list-item.html"),
|
|
filepath.Join("admin", "views", "edit-track.html"),
|
|
))
|
|
|
|
var EditCreditsTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "credits", "editcredits.html"),
|
|
))
|
|
var AddCreditTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "credits", "addcredit.html"),
|
|
))
|
|
var NewCreditTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "credits", "newcredit.html"),
|
|
))
|
|
|
|
var EditLinksTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "links", "editlinks.html"),
|
|
))
|
|
|
|
var EditTracksTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "tracks", "edittracks.html"),
|
|
))
|
|
var AddTrackTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "tracks", "addtrack.html"),
|
|
))
|
|
var NewTrackTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "components", "tracks", "newtrack.html"),
|
|
))
|