mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Cleaned up HTML templates.
This commit is contained in:
@@ -205,7 +205,7 @@ func AllianceSelectionFinalizeHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func renderAllianceSelection(w http.ResponseWriter, r *http.Request, errorMessage string) {
|
||||
template, err := template.ParseFiles("templates/alliance_selection.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_alliance_selection.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// Shows the field configuration page.
|
||||
func FieldGetHandler(w http.ResponseWriter, r *http.Request) {
|
||||
template, err := template.ParseFiles("templates/field.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_field.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
// Shows the lower third configuration page.
|
||||
func LowerThirdsGetHandler(w http.ResponseWriter, r *http.Request) {
|
||||
template, err := template.ParseFiles("templates/lower_thirds.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_lower_thirds.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -132,7 +132,7 @@ func renderSchedule(w http.ResponseWriter, r *http.Request, errorMessage string)
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
}
|
||||
template, err := template.ParseFiles("templates/schedule.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_schedule.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -169,7 +169,7 @@ func ClearDbHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func renderSettings(w http.ResponseWriter, r *http.Request, errorMessage string) {
|
||||
template, err := template.ParseFiles("templates/settings.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_settings.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
// Shows the sponsor slides configuration page.
|
||||
func SponsorSlidesGetHandler(w http.ResponseWriter, r *http.Request) {
|
||||
template, err := template.ParseFiles("templates/sponsor_slides.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_sponsor_slides.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -207,7 +207,7 @@ func renderTeams(w http.ResponseWriter, r *http.Request, showErrorMessage bool)
|
||||
return
|
||||
}
|
||||
|
||||
template, err := template.ParseFiles("templates/teams.html", "templates/base.html")
|
||||
template, err := template.ParseFiles("templates/setup_teams.html", "templates/base.html")
|
||||
if err != nil {
|
||||
handleWebErr(w, err)
|
||||
return
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
Display shown on the screens above each driver station.
|
||||
*/}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
Display shown on the audience screen overlayed over the video.
|
||||
*/}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
Base template used by most pages to render the top bar and include common resources.
|
||||
*/}}
|
||||
{{define "base"}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for manually editing the result for a match.
|
||||
*/}}
|
||||
{{define "title"}}Edit Match Results{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for editing team data.
|
||||
*/}}
|
||||
{{define "title"}}Edit Team{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
Display showing team diagnostics for FTA/FTAA use.
|
||||
*/}}
|
||||
{{define "title"}}FTA Display{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
Root page and entry point to Cheesy Arena.
|
||||
*/}}
|
||||
{{define "title"}}Home{{end}}
|
||||
{{define "body"}}
|
||||
<div class="jumbotron">
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for controlling match play and viewing team connection and field status.
|
||||
*/}}
|
||||
{{define "title"}}Match Play{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for listing matches and their results.
|
||||
*/}}
|
||||
{{define "title"}}Match Review{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: nick@team254.com (Nick Eyre)
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
Display for showing team rankings.
|
||||
*/}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!--
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: nick@team254.com (Nick Eyre)
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
-->
|
||||
<title>Pit Display - {{.EventSettings.Name}} - Cheesy Arena </title>
|
||||
<link rel="shortcut icon" href="/static/img/favicon32.png">
|
||||
<link rel="stylesheet" href="/static/css/lib/bootstrap.min.css" />
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for entering and tracking fouls and red/yellow cards.
|
||||
*/}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for entering realtime scores.
|
||||
*/}}
|
||||
{{define "title"}}Scoring{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for controlling the alliance selection process.
|
||||
*/}}
|
||||
{{define "title"}}Alliance Selection{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for controlling ephemeral aspects of the playing field.
|
||||
*/}}
|
||||
{{define "title"}}Field Configuration{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for configuring audience display lower thirds.
|
||||
*/}}
|
||||
{{define "title"}}Lower Thirds{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for generating a match schedule.
|
||||
*/}}
|
||||
{{define "title"}}Match Scheduling{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for configuring event settings.
|
||||
*/}}
|
||||
{{define "title"}}Settings{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for configuring the audience display sponsor roll.
|
||||
*/}}
|
||||
{{define "title"}}Sponsor Slides Configuration{{end}}
|
||||
{{define "body"}}
|
||||
<div class="row">
|
||||
@@ -1,3 +1,9 @@
|
||||
{{/*
|
||||
Copyright 2014 Team 254. All Rights Reserved.
|
||||
Author: pat@patfairbank.com (Patrick Fairbank)
|
||||
|
||||
UI for configuring the team list for an event.
|
||||
*/}}
|
||||
{{define "title"}}Team List{{end}}
|
||||
{{define "body"}}
|
||||
{{if .ShowErrorMessage}}
|
||||
Reference in New Issue
Block a user