aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-07 20:25:30 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-07 20:27:13 +0800
commit67083d3173197c0a247f7b32300ee007749fa939 (patch)
treeb6845c08dc01caa79da6a7350509b8c7127cc56f /templates
parenthooks: Simplify comments in the hook client (diff)
downloadforge-67083d3173197c0a247f7b32300ee007749fa939.tar.gz
forge-67083d3173197c0a247f7b32300ee007749fa939.tar.zst
forge-67083d3173197c0a247f7b32300ee007749fa939.zip
repo/index: Emit warning when path contains newline
Diffstat (limited to 'templates')
-rw-r--r--templates/repo_index.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl
index da67df4..c9d7311 100644
--- a/templates/repo_index.tmpl
+++ b/templates/repo_index.tmpl
@@ -33,6 +33,12 @@
<th scope="row">SSH remote</th>
<td><code>{{ .ssh_clone_url }}</code></td>
</tr>
+ {{ if .notes }}
+ <tr>
+ <th scope="row">Notes</th>
+ <td><ul>{{ range .notes }}<li>{{ . }}</li>{{ end }}</ul></td>
+ </tr>
+ {{ end }}
</tbody>
</table>
</div>