2022-09-13 05:28:13 +00:00
|
|
|
package controllers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"html/template"
|
2022-09-20 10:21:01 +00:00
|
|
|
"officeHours/models"
|
2022-09-13 05:28:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var Templates, _ = template.Must(template.ParseFiles(
|
|
|
|
"templates/addFailure.html",
|
|
|
|
"templates/addMask.html",
|
|
|
|
"templates/addSuccess.html",
|
|
|
|
"templates/deleteSuccess.html",
|
|
|
|
"templates/executeFailure.html",
|
|
|
|
"templates/executeSuccess.html",
|
2022-09-19 15:00:19 +00:00
|
|
|
"templates/footer.html",
|
2022-09-19 16:04:59 +00:00
|
|
|
"templates/head.html",
|
2022-09-13 05:28:13 +00:00
|
|
|
"templates/index.html",
|
|
|
|
"templates/officeHourTable.html",
|
|
|
|
"templates/requestNotFound.html")).
|
|
|
|
New("").Funcs(template.FuncMap{"DayName": models.DayName,
|
|
|
|
"divide": func(i int, j int) int { return i / j }}).ParseFiles("templates/confirmationMail", "templates/td.html")
|