summaryrefslogtreecommitdiffstats
path: root/templates/repositories.gohtml
diff options
context:
space:
mode:
authorColin Wilk <colin@wilk.cx>2026-10-30 10:04:02 +0100
committerColin Wilk <colin@wilk.cx>2026-10-30 10:07:43 +0100
commitb03b00869391cd70ef1e40561f72dffbd2f47b29 (patch)
treefd1941854bea58ec464b81ac8b0d8627cbed2e74 /templates/repositories.gohtml
downloadcr-web-b03b00869391cd70ef1e40561f72dffbd2f47b29.tar.gz
cr-web-b03b00869391cd70ef1e40561f72dffbd2f47b29.zip
Initial Commit
Diffstat (limited to 'templates/repositories.gohtml')
-rw-r--r--templates/repositories.gohtml17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/repositories.gohtml b/templates/repositories.gohtml
new file mode 100644
index 0000000..09b5714
--- /dev/null
+++ b/templates/repositories.gohtml
@@ -0,0 +1,17 @@
+{{define "repositories"}}{{template "header" .}}
+ <p>This is a container registry.</p>
+ <h1>Repositories</h1>
+ <table>
+ <thead><tr><th scope="col">Name</th><th scope="col">Last updated</th></tr></thead>
+ <tbody>
+ {{range .Repositories}}
+ <tr>
+ <td><a href="{{repoURL .Name}}">{{.Name}}</a></td>
+ <td title="{{timestamp .UpdatedAt}}">{{age .UpdatedAt .Age}}</td>
+ </tr>
+ {{else}}
+ <tr><td colspan="2">No repositories found.</td></tr>
+ {{end}}
+ </tbody>
+ </table>
+{{template "footer" .}}{{end}}