From ce71721c6dc80db8af63f2098a1548308e2621b2 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 11 Dec 2022 21:17:04 +0530 Subject: routes, templates: tree and log views --- templates/repo.html | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) (limited to 'templates/repo.html') diff --git a/templates/repo.html b/templates/repo.html index e388de3..3c99df5 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -9,13 +9,41 @@ {{ template "nav" . }}
+ {{ $repo := .name }} + {{ $ref := .ref }} + {{ $parent := .parent }} + + + + + {{ range .files }} - {{ if .IsFile }} -

{{ .Mode }} {{ .Name }} {{ .Size }}

- {{ else }} -

d-------- {{ .Name}}/

- {{ end }} + {{ if .IsFile }} + + + + + {{ else }} + + + + + {{ end }} {{ end }} +
.. +
{{ .Mode }} + {{ if $parent }} + {{ .Name }} + {{ else }} + {{ .Name }} + {{ end }} +
{{ .Mode }} + {{ if $parent }} + {{ .Name }}/ + {{ else }} + {{ .Name }}/ + {{ end }} +
-- cgit