summaryrefslogtreecommitdiffstats
path: root/templates/repository.gohtml
blob: 5996684012ea9638a51009cc021c561ea421fca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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}}