admin view routes and tasks
This commit is contained in:
23
templates.go
23
templates.go
@@ -5,14 +5,15 @@ import (
|
||||
)
|
||||
|
||||
type CipherTemplateS struct {
|
||||
Order uint
|
||||
Assignment template.HTML
|
||||
HelpText string
|
||||
FinalClue string
|
||||
Coordinates string
|
||||
Solution string
|
||||
Help int
|
||||
Wrong bool
|
||||
Order uint
|
||||
Assignment template.HTML
|
||||
HelpText string
|
||||
FinalClue string
|
||||
Coordinates string
|
||||
PositionHint string
|
||||
Solution string
|
||||
Help int
|
||||
Wrong bool
|
||||
}
|
||||
|
||||
type TeamTemplateS struct {
|
||||
@@ -22,6 +23,12 @@ type TeamTemplateS struct {
|
||||
Penalties int
|
||||
}
|
||||
|
||||
type AdminRoutesTemplateS struct {
|
||||
Name string
|
||||
Ciphers []CipherTemplateS
|
||||
}
|
||||
|
||||
var CipherTemplate = template.Must(template.ParseFiles("templates/assignment.html"))
|
||||
var TeamTemplate = template.Must(template.ParseFiles("templates/team.html"))
|
||||
var AdminTeamsTemplate = template.Must(template.ParseFiles("templates/adminTeams.html"))
|
||||
var AdminRoutesTemplate = template.Must(template.ParseFiles("templates/adminRoutes.html"))
|
||||
|
||||
Reference in New Issue
Block a user