From 5091695e75b2db30b8926d8aa17164c84031bc77 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 17 Dec 2022 21:33:04 +0530 Subject: templates: repo and log --- templates/tree.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 templates/tree.html (limited to 'templates/tree.html') diff --git a/templates/tree.html b/templates/tree.html new file mode 100644 index 0000000..b63a23e --- /dev/null +++ b/templates/tree.html @@ -0,0 +1,53 @@ +{{ define "tree" }} + + {{ .name }} + {{ if .parent }} + — {{ .parent }} + {{ end }} + +{{ template "head" . }} + +
+

{{ .meta.Title }}

+

{{ .meta.Description }}

+
+ + {{ template "nav" . }} +
+ {{ $repo := .name }} + {{ $ref := .ref }} + {{ $parent := .parent }} + +
+ {{ if $parent }} +
+
..
+ {{ end }} + {{ range .files }} +
{{ .Mode }}
+
+ {{ if .IsFile }} + {{ if $parent }} + {{ .Name }} + {{ else }} + {{ .Name }} + {{ end }} + {{ else }} + {{ if $parent }} + {{ .Name }}/ + {{ else }} + {{ .Name }}/ + {{ end }} + {{ end }} +
+ {{ end }} +
+
+
+          {{- if .readme }}{{ .readme }}{{- end -}}
+        
+
+
+ + +{{ end }} -- cgit