From 23d16fa16269833a2a88852788ab11502ab73a3f Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Fri, 19 Apr 2024 17:37:28 +0200 Subject: [PATCH] =?UTF-8?q?Only=20show=20individual=20campsite=20and=20?= =?UTF-8?q?=E2=80=9CAdd=20campsite=E2=80=9D=20links=20to=20admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Regular users do not need, or can use, those links. --- web/templates/admin/campsite/index.gohtml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/templates/admin/campsite/index.gohtml b/web/templates/admin/campsite/index.gohtml index f392b27..addf242 100644 --- a/web/templates/admin/campsite/index.gohtml +++ b/web/templates/admin/campsite/index.gohtml @@ -11,7 +11,10 @@ {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite.campsiteIndex*/ -}} - {{( pgettext "Add Campsite" "action" )}} + {{ if isAdmin -}} + {{( pgettext "Add Campsite" "action" )}} + {{- end }} +

{{( pgettext "Campsites" "title" )}}

{{ if .Campsites -}}
@@ -63,7 +66,13 @@ {{ range .Campsites -}} - {{ .Label }} + + {{- if isAdmin -}} + {{ .Label }} + {{- else -}} + {{ .Label }} + {{- end -}} + {{ range $.Months }} {{ range .Days }}