From b5f1ccf98dcddcc516d7b428c435f3ea8a36e837 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Mon, 4 Apr 2022 08:06:09 +0200 Subject: [PATCH] place scripts in index as template --- Lab01/app/templates/index.tmpl | 22 ++++++++++++++++------ Lab01/app/templates/login.tmpl | 4 ++-- Lab01/app/templates/register.tmpl | 7 +++---- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Lab01/app/templates/index.tmpl b/Lab01/app/templates/index.tmpl index b1d9195..4b11a81 100644 --- a/Lab01/app/templates/index.tmpl +++ b/Lab01/app/templates/index.tmpl @@ -8,11 +8,12 @@ {{template "navbar" .}} -
-
Welcome
+
+
Welcome to the Super Save Store.
+
Login to continue.
- +{{template "scripts" .}} @@ -24,14 +25,17 @@ - + {{end}} {{define "navbar"}} -{{end}} \ No newline at end of file +{{end}} + +{{define "scripts"}} + +{{end}} diff --git a/Lab01/app/templates/login.tmpl b/Lab01/app/templates/login.tmpl index bfec003..f51aa9d 100644 --- a/Lab01/app/templates/login.tmpl +++ b/Lab01/app/templates/login.tmpl @@ -24,6 +24,6 @@
- +{{template "scripts" .}} - \ No newline at end of file + diff --git a/Lab01/app/templates/register.tmpl b/Lab01/app/templates/register.tmpl index 3f1632f..33cee7a 100644 --- a/Lab01/app/templates/register.tmpl +++ b/Lab01/app/templates/register.tmpl @@ -22,9 +22,8 @@ - + +{{template "scripts" .}} - \ No newline at end of file +