From d635a422d9b68219bfcacbeedcbfb099a136d617 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:10:07 +0800 Subject: repo_{index,log}: Link commits to their pages --- static/style.css | 4 ++++ templates/repo_index.html.tmpl | 2 +- templates/repo_log.html.tmpl | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index 5e6d10a..1242c12 100644 --- a/static/style.css +++ b/static/style.css @@ -79,3 +79,7 @@ th[scope=row] { tr.title-row > th { background-color: var(--darker-box-background-color); } + +.commit-id { + font-family: monospace; +} diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index ca0fd83..4fd4f08 100644 --- a/templates/repo_index.html.tmpl +++ b/templates/repo_index.html.tmpl @@ -21,7 +21,7 @@ {{- range .commits }} - {{ .Message | first_line }} + {{ .Message | first_line }} {{ .Author.Name }} diff --git a/templates/repo_log.html.tmpl b/templates/repo_log.html.tmpl index 67f28a8..9054c2d 100644 --- a/templates/repo_log.html.tmpl +++ b/templates/repo_log.html.tmpl @@ -21,7 +21,7 @@ {{- range .commits }} - {{ .Hash.String }} + {{ .ID }} {{ .Message | first_line }} {{ .Author.Name }} -- cgit v1.2.3