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