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/ref.gophermap | |
parent | ebea6fe755fb052b79cbe05b6280611337e1e5f6 (diff) |
GOPHER
Diffstat (limited to 'templates/ref.gophermap')
-rw-r--r-- | templates/ref.gophermap | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/ref.gophermap b/templates/ref.gophermap new file mode 100644 index 0000000..3e8d6f9 --- /dev/null +++ b/templates/ref.gophermap @@ -0,0 +1,34 @@ +{{ with .Repo.Commit .Ctx .Params.ref -}} +i{{.Repo.Name}} {{slice .Hash 0 8}} {{$.Selector}} {{$.Host}} {{$.Port}}
+i{{ range .Repo.NameBytes }}-{{ end }}--------- {{$.Selector}} {{$.Host}} {{$.Port}}
+i {{$.Selector}} {{$.Host}} {{$.Port}}
+i{{.ShortMessage}} {{$.Selector}} {{$.Host}} {{$.Port}}
+i {{$.Selector}} {{$.Host}} {{$.Port}}
+{{ with .RestOfMessage -}} +{{ if ne . "" -}} +i{{.}} {{$.Selector}} {{$.Host}} {{$.Port}}
+i {{$.Selector}} {{$.Host}} {{$.Port}}
+{{ end -}} +{{ end -}} +1🗂️ Repository {{combine $.Selector ".."}} {{$.Host}} {{$.Port}}
+1📄 Files {{$.Selector}}/tree {{$.Host}} {{$.Port}}
+{{ if ne .Parents nil -}} +0🔩 Full Diff {{join $.Selector "../../diff" .ParentHash .Hash}} {{$.Host}} {{$.Port}}
+{{ else -}} +0🔩 Full Diff {{combine $.Selector "../diff/4b825dc642cb6eb9a060e54bf8d69288fbee4904" .Hash}} {{$.Host}} {{$.Port}}
+{{ end -}} +{{ range .Parents -}} +1👤 Parent {{slice . 0 8}} {{combine $.Selector .}} {{$.Host}} {{$.Port}}
+{{ end -}} +{{ range .Repo.Refs $.Ctx -}} +{{ if .IsTag -}} +{{ if eq $.Params.ref .Hash -}} +1🏷️ {{.ShortName}} ../{{.Hash}} {{$.Host}} {{$.Port}}
+{{ end -}} +{{ end -}} +{{ end -}} +i {{$.Selector}} {{$.Host}} {{$.Port}}
+iAuthored by {{.AuthorName}}<{{.AuthorEmail}}> on {{.AuthorDate.Format "Mon Jan _2 15:04:05 MST 2006"}} {{$.Selector}} {{$.Host}} {{$.Port}}
+iCommitted by {{.CommitterName}}<{{.CommitterEmail}}> on {{.CommitDate.Format "Mon Jan _2 15:04:05 MST 2006"}} {{$.Selector}} {{$.Host}} {{$.Port}}
+{{ end -}} +.
|