From ddc4a70004ac29f569d1a4765f2d48f9f698a22c Mon Sep 17 00:00:00 2001 From: Mario Lubenka Date: Wed, 30 Dec 2020 15:16:00 +0100 Subject: [PATCH] fix: repo variable in dir template --- tmpl/dir.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmpl/dir.html b/tmpl/dir.html index 1b6bb32..c9bef41 100644 --- a/tmpl/dir.html +++ b/tmpl/dir.html @@ -7,8 +7,8 @@

Index of {{ .Ref.FilePath }}/ on {{ .Ref.Type }} {{ .Ref.Name }}

Git Remote: {{ .Ref.Client.CurrentRepo.Url }}


-{{ if ne .Ref.FilePath "" }}../{{ end }}
-{{ range $value := .Files }}{{ . }}
{{ end }} +{{ if ne .Ref.FilePath "" }}../{{ end }} +{{ range $value := .Files }}{{ . }}
{{ end }}