summaryrefslogtreecommitdiffstats
path: root/templates/repository.gohtml
diff options
context:
space:
mode:
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}}