From 75db9af48cbccfdbb74dbe0cbb0577dbe64f14a3 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 30 Dec 2020 19:13:51 -0500 Subject: [PATCH] Don't show cookie policy after login --- site-api.go | 2 +- static/header.tpl | 3 +-- static/loggedIn.tpl | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/site-api.go b/site-api.go index 1f6c82e..27a7923 100644 --- a/site-api.go +++ b/site-api.go @@ -59,7 +59,7 @@ func greetUser(w http.ResponseWriter, r *http.Request) { loggedIn, username := detectUser(r, "greetUser") if loggedIn { - fmt.Fprintf(w, strings.Replace(bodyWrapper(r, "loggedIn"), "$USER", username, -1)) + fmt.Fprintf(w, strings.Replace(pageBuilder(r, "loggedIn"), "$USER", username, -1)) } else { fmt.Fprintf(w, pageBuilder(r, "home")) } diff --git a/static/header.tpl b/static/header.tpl index b8c340f..67a9d79 100644 --- a/static/header.tpl +++ b/static/header.tpl @@ -9,8 +9,7 @@ - - + diff --git a/static/loggedIn.tpl b/static/loggedIn.tpl index b1d926f..b0639cd 100644 --- a/static/loggedIn.tpl +++ b/static/loggedIn.tpl @@ -1 +1,3 @@ + + \ No newline at end of file