From d635a422d9b68219bfcacbeedcbfb099a136d617 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 19:10:07 +0800 Subject: [PATCH] repo_{index,log}: Link commits to their pages --- static/style.css | 4 ++++ templates/repo_index.html.tmpl | 2 +- templates/repo_log.html.tmpl | 2 +- diff --git a/static/style.css b/static/style.css index 5e6d10ad2bb8291f13f491292017f58a26574c14..1242c1212c017fbdaf4559b2db5d3982821c69e0 100644 --- a/static/style.css +++ b/static/style.css @@ -79,3 +79,7 @@ } 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 ca0fd83acb13c60402e5f72f66f13d7317bfef4c..4fd4f08f682bc22447f29b65884592382bb08e19 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 67f28a877afcb1222bdea1e3680c3e6f98483915..9054c2d6e1f37ae7142d7a1cca4c6ffa4fc0ab89 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 }} -- 2.48.1