aboutsummaryrefslogtreecommitdiff
path: root/directory.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-01 23:05:59 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-01 23:25:26 +0100
commit5eed8fa506bbd24469ec4d42a183928be89a325b (patch)
tree3ed0e5f514ec1c628bd6c0bbe634d12f5cb8ada4 /directory.go
parent3c846b6a59c1e725b56b7784c30cfbd5a3dc080b (diff)
downloadguichet-5eed8fa506bbd24469ec4d42a183928be89a325b.tar.gz
guichet-5eed8fa506bbd24469ec4d42a183928be89a325b.zip
Make repo into a Nix flake
Diffstat (limited to 'directory.go')
-rw-r--r--directory.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/directory.go b/directory.go
index ab5dea3..0b5acd5 100644
--- a/directory.go
+++ b/directory.go
@@ -13,7 +13,7 @@ const FIELD_NAME_PROFILE_PICTURE = "profilePicture"
const FIELD_NAME_DIRECTORY_VISIBILITY = "directoryVisibility"
func handleDirectory(w http.ResponseWriter, r *http.Request) {
- templateDirectory := template.Must(template.ParseFiles("templates/layout.html", "templates/directory.html"))
+ templateDirectory := getTemplate("directory.html")
login := checkLogin(w, r)
if login == nil {
@@ -37,7 +37,7 @@ type SearchResults struct {
}
func handleDirectorySearch(w http.ResponseWriter, r *http.Request) {
- templateDirectoryResults := template.Must(template.ParseFiles("templates/directory_results.html"))
+ templateDirectoryResults := template.Must(template.ParseFiles(templatePath + "/directory_results.html"))
//Get input value by user
r.ParseMultipartForm(1024)