From a758d8c13c83e9a664ddf75b97a459bca65dc30a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:29:44 +0800 Subject: repo_commit: Add commit message --- static/style.css | 3 +++ templates/repo_commit.html.tmpl | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/style.css b/static/style.css index 1242c12..f8b21c7 100644 --- a/static/style.css +++ b/static/style.css @@ -79,6 +79,9 @@ th[scope=row] { tr.title-row > th { background-color: var(--darker-box-background-color); } +td > pre { + margin: 0; +} .commit-id { font-family: monospace; diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl index 03625aa..3deec3d 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -10,10 +10,14 @@ - + + + + + @@ -30,6 +34,10 @@ + + + +
Commit {{ .commit_id }}Commit Info
ID{{ .commit_id }}
Author {{ .commit_object.Author.Name }} <{{ .commit_object.Author.Email }}>Committer Date {{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
Message
{{ .commit_object.Message }}
{{ .patch }}
-- cgit v1.2.3