From 8bed72cd86c501c0fd6dd55784f23d6f0349fecc Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Wed, 30 Apr 2025 12:53:03 +0300 Subject: [PATCH] appview: pages/templates/repo: more commit log improvements --- appview/pages/templates/repo/log.html | 66 ++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 2 deletions(-) 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 }} -- 2.54.0