diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-17 14:00:03 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-17 14:00:03 -0600 |
commit | ce0def95f3924a10b0faceb72aa5df18bf813fb1 (patch) | |
tree | 2f0300d84738343ea2fb9f13db1af1e649b41917 /templates/branch_list.gophermap | |
parent | ebea6fe755fb052b79cbe05b6280611337e1e5f6 (diff) |
GOPHER
Diffstat (limited to 'templates/branch_list.gophermap')
-rw-r--r-- | templates/branch_list.gophermap | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/branch_list.gophermap b/templates/branch_list.gophermap new file mode 100644 index 0000000..cd238ad --- /dev/null +++ b/templates/branch_list.gophermap @@ -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 -}} +.
|