From a758d8c13c83e9a664ddf75b97a459bca65dc30a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:29:44 +0800 Subject: [PATCH] repo_commit: Add commit message --- static/style.css | 3 +++ templates/repo_commit.html.tmpl | 10 +++++++++- diff --git a/static/style.css b/static/style.css index 1242c1212c017fbdaf4559b2db5d3982821c69e0..f8b21c7afaae0948d5976ef56e955087b881a741 100644 --- a/static/style.css +++ b/static/style.css @@ -79,6 +79,9 @@ } 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 03625aa2f1adedb17270eceb99d3d0f6f08e46fe..3deec3d13571e000e5fb0a7789b6e20abcccbffe 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -10,10 +10,14 @@
- + + + + + @@ -29,6 +33,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 }}
-- 2.48.1