From 275c49817dc02014f9585f5f1de418156df66a0e Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 18:16:19 +0800 Subject: HTML: Don't use for the repo index page's commit list References: https://todo.sr.ht/~runxiyu/forge/9 --- templates/repo_index.tmpl | 49 +++++++++++++++++++---------------------------- 1 file changed, 20 insertions(+), 29 deletions(-) (limited to 'templates') diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl index 666eaeb..21eb5f6 100644 --- a/templates/repo_index.tmpl +++ b/templates/repo_index.tmpl @@ -52,35 +52,26 @@ {{- end -}}

{{- .ssh_clone_url -}}

{{- if .commits -}} -
-
- - - - - - - - - - - - {{- range .commits -}} - - - - - - {{- end -}} - {{- if dereference_error .commits_err -}} - Error while obtaining commit log: {{ .commits_err }} - {{- end -}} - -
Recent commits (see all)
TitleAuthorAuthor date
{{- .Message | first_line -}} - - - {{- .Date -}} -
+
+ {{- range .commits -}} +
+
+ + {{- .Hash | printf "%.8s" -}} + +  — {{- .Author -}} + + {{- .Date -}} + +
+
{{- .Message | first_line -}}
+
+ {{- end -}} + {{- if dereference_error .commits_err -}} +
+ Error while obtaining commit log: {{ .commits_err }} +
+ {{- end -}}
{{- end -}} {{- if .readme -}} -- cgit v1.2.3