diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-12 21:58:47 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-12 21:58:47 +0530 |
commit | 7a6ff3565e8e5f55d50c509c9ee12438b61c850e (patch) | |
tree | 58d609ef2fba68fb82bd0e8a47d6c98692361f6e /templates/refs.html | |
parent | 01f27147baf80e2222927ddca9369c7d99b4ff3c (diff) | |
download | legit-7a6ff3565e8e5f55d50c509c9ee12438b61c850e.tar.gz legit-7a6ff3565e8e5f55d50c509c9ee12438b61c850e.tar.bz2 legit-7a6ff3565e8e5f55d50c509c9ee12438b61c850e.zip |
routes: refs view
Diffstat (limited to '')
-rw-r--r-- | templates/refs.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/refs.html b/templates/refs.html new file mode 100644 index 0000000..e1668d2 --- /dev/null +++ b/templates/refs.html @@ -0,0 +1,32 @@ +{{ define "refs" }} +<html> +{{ template "head" . }} + + <header> + <h1>{{ .meta.Title }}</h1> + <h2>{{ .meta.Description }}</h2> + </header> + <body> + {{ template "nav" . }} + <main> + <h3>branches</h3> + {{ $name := .name }} + {{ range .branches }} + <p> + <strong>{{ .Name.Short }}</strong> + <a href="/{{ $name }}/tree/{{ .Name.Short }}/">browse</a> + <a href="/{{ $name }}/log/{{ .Name.Short }}">log</a> + </p> + {{ end }} + {{ if .tags }} + {{ range .tags }} + <p>{{ .Name }}</p> + {{ if .Message }} + <p>{{ .Message }}</p> + {{ end }} + {{ end }} + {{ end }} + </main> + </body> +</html> +{{ end }} |