From 32f84de36c9da1da47b718cb942afa36d1b23922 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 23 Sep 2023 13:10:27 -0600 Subject: use .gmi, .gmi.txt, .gph, .gph.txt everywhere for templates --- templates/branch_list.gph | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/branch_list.gph (limited to 'templates/branch_list.gph') diff --git a/templates/branch_list.gph b/templates/branch_list.gph new file mode 100644 index 0000000..cd238ad --- /dev/null +++ b/templates/branch_list.gph @@ -0,0 +1,9 @@ +i{{.Repo.Name}} Branches ⌥ {{.Selector}} {{.Host}} {{.Port}} +i{{ range .Repo.NameBytes }}-{{ end }}----------- {{.Selector}} {{.Host}} {{.Port}} +i {{.Selector}} {{.Host}} {{.Port}} +{{ range .Repo.Refs .Ctx -}} +{{ if .IsBranch -}} +1{{.ShortName}} {{combine $.Selector "refs/" .Hash}} {{$.Host}} {{$.Port}} +{{ end -}} +{{ end -}} +. -- cgit v1.2.3