diff --git a/views/header.html b/views/header.html index 7094e9f..0bc45ca 100644 --- a/views/header.html +++ b/views/header.html @@ -39,7 +39,8 @@ hover:text-white">Cart Logout - {{ else }} + {{ end }} + {{ if .loggedIn }}
🛒 Cart
diff --git a/views/shopitem.html b/views/shopitem.html index 896ac4e..33ae10e 100644 --- a/views/shopitem.html +++ b/views/shopitem.html @@ -9,15 +9,15 @@ Product Image
+
+ +
+ {{ if .loggedIn }}
-
- -
- {{ if .loggedIn }}
@@ -34,6 +34,7 @@ {{ .data.shopItem.Abstract }}

+ {{ if .loggedIn }}
+ {{ end }}
diff --git a/views/shopitems.html b/views/shopitems.html index db8792f..e1ed201 100644 --- a/views/shopitems.html +++ b/views/shopitems.html @@ -25,7 +25,9 @@ {{ end }}

-

{{ .BasePrice }}€

+ {{ if $.loggedIn }} +

{{ .BasePrice }}€

+ {{ end }}