aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-16 01:36:02 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-16 01:36:02 +0800
commitcab2f0547987fa3ecd32c37971dd0f4df9787465 (patch)
treedc5ed7909c151db7882e846c7c3f1080ed8f4dbf /templates
parent*: go-humanize is a direct dependency, not indirect (diff)
downloadforge-cab2f0547987fa3ecd32c37971dd0f4df9787465.tar.gz
forge-cab2f0547987fa3ecd32c37971dd0f4df9787465.tar.zst
forge-cab2f0547987fa3ecd32c37971dd0f4df9787465.zip
Show branches
Diffstat (limited to '')
-rw-r--r--templates/repo_index.tmpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl
index d0c65c0..19814cc 100644
--- a/templates/repo_index.tmpl
+++ b/templates/repo_index.tmpl
@@ -43,6 +43,24 @@
</table>
</div>
<div class="padding-wrapper">
+ <table id="branches" class="rounded">
+ <thead>
+ <tr class="title-row">
+ <th colspan="1">Branches</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range .branches }}
+ <tr>
+ <td>
+ <a href="./?branch={{ . }}">{{ . }}</a>
+ </td>
+ </tr>
+ {{ end }}
+ </tbody>
+ </table>
+ </div>
+ <div class="padding-wrapper">
<p>
<a href="contrib/" class="btn-normal">Merge requests</a>
</p>