diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index 4939fe10..59cbd109 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -1,7 +1,8 @@ {{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }} {{ define "repoContent" }} -
- +
+ +
@@ -56,6 +57,67 @@ {{ end }} + + +
+

commits

+ {{ range $commit := .Commits }} +
+
+ {{ $messageParts := splitN $commit.Message "\n\n" 2 }} +
+
+
+
+ + {{ index $messageParts 0 }} + + {{ if gt (len $messageParts) 1 }} + + {{ end }} + {{ if gt (len $messageParts) 1 }} + + {{ end }} +
+ + {{ i "folder-code" "w-4 h-4" }} + +
+ +
+
+
+ +
+ + + {{ slice $commit.Hash.String 0 8 }} + + + + + {{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} + + {{ if $didOrHandle }}{{ $didOrHandle }}{{ else }}{{ $commit.Author.Name }}{{ end }} + + +
+ {{ shortTimeFmt $commit.Author.When }} +
+
+ {{ end }} +
{{ $commits_len := len .Commits }}