diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 11:29:49 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 11:31:32 +0800 |
commit | 3f44e5773e9edd3044cd5235a36a06d01de13e31 (patch) | |
tree | 26fdb7daa55e3b5c9e69aa57592eb7059d365810 /templates | |
parent | http_handle_repo_*.go: Remove redundant return (diff) | |
download | forge-3f44e5773e9edd3044cd5235a36a06d01de13e31.tar.gz forge-3f44e5773e9edd3044cd5235a36a06d01de13e31.tar.zst forge-3f44e5773e9edd3044cd5235a36a06d01de13e31.zip |
repo_log: Use parameters for refspec
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo_index.html.tmpl | 2 | ||||
-rw-r--r-- | templates/repo_log.html.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index 80300d2..14d2a5d 100644 --- a/templates/repo_index.html.tmpl +++ b/templates/repo_index.html.tmpl @@ -37,7 +37,7 @@ <table id="recent-commits" class="wide"> <thead> <tr class="title-row"> - <th colspan="3"><label for="toggle-table-recent-commits">Recent Commits (<a href="log/{{ .ref_name }}/">see all</a>)</label></th> + <th colspan="3"><label for="toggle-table-recent-commits">Recent Commits (<a href="log/{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">see all</a>)</label></th> </tr> </thead> <tbody> diff --git a/templates/repo_log.html.tmpl b/templates/repo_log.html.tmpl index 88b978d..fa29fa5 100644 --- a/templates/repo_log.html.tmpl +++ b/templates/repo_log.html.tmpl @@ -11,7 +11,7 @@ <table id="commits" class="wide"> <thead> <tr class="title-row"> - <th colspan="4">Commits on {{ .ref_name }}</th> + <th colspan="4">Commits {{ if .ref_name }} on {{ .ref_name }}{{ end }}</th> </tr> <tr> <th scope="col">ID</th> |