91 lines
3.4 KiB
Go
91 lines
3.4 KiB
Go
package admin
|
|
|
|
import (
|
|
"html/template"
|
|
"path/filepath"
|
|
)
|
|
|
|
var indexTemplate = 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"),
|
|
))
|
|
|
|
var loginTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "login.html"),
|
|
))
|
|
var loginTOTPTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "login-totp.html"),
|
|
))
|
|
var registerTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "register.html"),
|
|
))
|
|
var logoutTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "logout.html"),
|
|
))
|
|
var accountTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "edit-account.html"),
|
|
))
|
|
var totpSetupTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "totp-setup.html"),
|
|
))
|
|
var totpConfirmTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "totp-confirm.html"),
|
|
))
|
|
|
|
var releaseTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "edit-release.html"),
|
|
))
|
|
var artistTemplate = template.Must(template.ParseFiles(
|
|
filepath.Join("admin", "views", "layout.html"),
|
|
filepath.Join("views", "prideflag.html"),
|
|
filepath.Join("admin", "views", "edit-artist.html"),
|
|
))
|
|
var trackTemplate = 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 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"),
|
|
))
|