diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 08:48:07 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 08:48:07 +0800 |
commit | e347064abe3ce4c90fbad23d36e5d61a149e2389 (patch) | |
tree | b587b82f918800b6ea457ece60d778b39a92dbe1 /templates/repo_index.html.tmpl | |
parent | README.md: Add details in features supported by git repos (diff) | |
download | forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.tar.gz forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.tar.zst forge-e347064abe3ce4c90fbad23d36e5d61a149e2389.zip |
http_*: Refactor to reduce duplication
Diffstat (limited to 'templates/repo_index.html.tmpl')
-rw-r--r-- | templates/repo_index.html.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl index f6615d7..7faea1e 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 }}/">see all</a>)</label></th> + <th colspan="3"><label for="toggle-table-recent-commits">Recent Commits (<a href="log/{{ .ref_name }}/">see all</a>)</label></th> </tr> </thead> <tbody> @@ -60,11 +60,11 @@ <table id="file-tree" class="wide"> <thead> <tr class="title-row"> - <th colspan="3"><label for="toggle-table-file-tree">/ on {{ .ref }}</label></th> + <th colspan="3"><label for="toggle-table-file-tree">/ on {{ .ref_name }}</label></th> </tr> </thead> <tbody> - {{- $ref := .ref }} + {{- $ref := .ref_name }} {{- range .files }} <tr> <td class="file-mode">{{ .Mode }}</td> |