aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_index.html.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-12 20:47:33 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-12 20:47:33 +0800
commit7c008d4f16acaeb826f82d402772288f729e6e54 (patch)
tree62db0810c5b1ffe96703429bea2481981ec6e60f /templates/repo_index.html.tmpl
parentrepo_log: Fix anchor (diff)
downloadforge-7c008d4f16acaeb826f82d402772288f729e6e54.tar.gz
forge-7c008d4f16acaeb826f82d402772288f729e6e54.tar.zst
forge-7c008d4f16acaeb826f82d402772288f729e6e54.zip
repo_index: Add clone instructions
Diffstat (limited to '')
-rw-r--r--templates/repo_index.html.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/repo_index.html.tmpl b/templates/repo_index.html.tmpl
index de2d1da..6bc3253 100644
--- a/templates/repo_index.html.tmpl
+++ b/templates/repo_index.html.tmpl
@@ -9,6 +9,21 @@
<header>
{{ template "repo_header" . }}
</header>
+ <div class="padding-wrapper">
+ <table id="repo-info-table">
+ <thead>
+ <tr class="title-row">
+ <th colspan="2">Repo Info</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th scope="row">Clone</th>
+ <td><code>git clone {{ .clone_url }}</code></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
<div class="padding-wrapper scroll">
<input id="toggle-table-recent-commits" type="checkbox" class="toggle-table-off" />
<table id="recent-commits" class="wide">