diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-10-30 10:04:02 +0100 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-10-30 10:07:43 +0100 |
| commit | b03b00869391cd70ef1e40561f72dffbd2f47b29 (patch) | |
| tree | fd1941854bea58ec464b81ac8b0d8627cbed2e74 /templates/repositories.gohtml | |
| download | cr-web-b03b00869391cd70ef1e40561f72dffbd2f47b29.tar.gz cr-web-b03b00869391cd70ef1e40561f72dffbd2f47b29.zip | |
Initial Commit
Diffstat (limited to 'templates/repositories.gohtml')
| -rw-r--r-- | templates/repositories.gohtml | 17 |
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}} |