aboutsummaryrefslogtreecommitdiff
path: root/templates/repo_index.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-16 02:28:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-16 02:28:55 +0800
commit6f9f62d453c94ac8d69baebcf51589d9b623d306 (patch)
treef311981eb5b86049ca85e9e2a58a86d5f4c45aea /templates/repo_index.tmpl
parenthttp_*: Add HTTP cloning (diff)
downloadforge-6f9f62d453c94ac8d69baebcf51589d9b623d306.tar.gz
forge-6f9f62d453c94ac8d69baebcf51589d9b623d306.tar.zst
forge-6f9f62d453c94ac8d69baebcf51589d9b623d306.zip
repo_index: Add HTTP clone along with SSH
Diffstat (limited to 'templates/repo_index.tmpl')
-rw-r--r--templates/repo_index.tmpl7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl
index 29e597e..e858f6f 100644
--- a/templates/repo_index.tmpl
+++ b/templates/repo_index.tmpl
@@ -20,8 +20,11 @@
<td>{{ .repo_name }}</td>
</tr>
<tr>
- <th scope="row">Clone</th>
- <td><code>git clone {{ .clone_url }}</code></td>
+ <th scope="row" rowspan="2">Clone</th>
+ <td><code>git clone {{ .ssh_clone_url }}</code></td>
+ </tr>
+ <tr>
+ <td><code>git clone {{ .http_clone_url }}</code></td>
</tr>
{{ if .repo_description }}
<tr>