From cac176daa985b032f08758ae54c83eea659f9bc3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:04:05 +0800 Subject: repo_commit: Add a commit info page --- templates/repo_commit.html.tmpl | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 templates/repo_commit.html.tmpl (limited to 'templates') diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl new file mode 100644 index 0000000..03625aa --- /dev/null +++ b/templates/repo_commit.html.tmpl @@ -0,0 +1,44 @@ +{{- define "repo_commit" -}} + + + + {{ template "head_common" . }} + {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Commit {{ .commit_id }}
Author{{ .commit_object.Author.Name }} <{{ .commit_object.Author.Email }}>
Author Date{{ .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
Committer{{ .commit_object.Committer.Name }} <{{ .commit_object.Committer.Email }}>
Committer Date{{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
+
{{ .patch }}
+

+

+
+ + + +{{- end -}} -- cgit v1.2.3