aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_index.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-14 08:48:07 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-14 08:48:07 +0800
commite347064abe3ce4c90fbad23d36e5d61a149e2389 (patch)
treeb587b82f918800b6ea457ece60d778b39a92dbe1 /templates/repo_index.html.tmpl
parentREADME.md: Add details in features supported by git repos (diff)
downloadforge-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.tmpl6
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>