summaryrefslogtreecommitdiffstats
path: root/templates/repository.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/repository.gohtml
downloadcr-web-b03b00869391cd70ef1e40561f72dffbd2f47b29.tar.gz
cr-web-b03b00869391cd70ef1e40561f72dffbd2f47b29.zip
Initial Commit
Diffstat (limited to 'templates/repository.gohtml')
-rw-r--r--templates/repository.gohtml22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/repository.gohtml b/templates/repository.gohtml
new file mode 100644
index 0000000..5996684
--- /dev/null
+++ b/templates/repository.gohtml
@@ -0,0 +1,22 @@
+{{define "repository"}}{{template "header" .}}
+ <h1>Tags for {{.Repository.Name}} in <a href="/">registry</a></h1>
+ <table>
+ <thead><tr>
+ <th scope="col">Tag</th><th scope="col">Aliases</th><th scope="col">Last updated</th>
+ <th scope="col">Size or platforms</th><th scope="col">Pull address</th>
+ </tr></thead>
+ <tbody>
+ {{range .Repository.Tags}}
+ <tr>
+ <td><a href="{{manifestURL $.Repository.Name .ManifestDigest .Name}}">{{.Name}}</a></td>
+ <td>{{join .Aliases " "}}</td>
+ <td title="{{timestamp .UpdatedAt}}">{{age .UpdatedAt .Age}}</td>
+ <td>{{if .Platforms}}{{.Platforms}}{{else}}{{size .SizeBytes}}{{end}}</td>
+ <td>{{pull $.RegistryHost $.Repository.Name .Name ""}}</td>
+ </tr>
+ {{else}}
+ <tr><td colspan="5">No tags found.</td></tr>
+ {{end}}
+ </tbody>
+ </table>
+{{template "footer" .}}{{end}}