internal/web/templates/builds.html

e278948b45ed675b9da3799bb89de836e3f2a954
gitbay/internal/web/templates/builds.html history · blame · raw

17 lines · 701 bytes

 1{{define "title"}}builds · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3{{template "repoheader" .}}
 4<ul class="loglist">
 5{{range .Builds}}<li>
 6  <div class="commitmain">
 7    <p class="subject"><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/builds/{{.Number}}">#{{.Number}} {{.Job}}</a></p>
 8    <p class="meta">{{.Ref}} · {{when .CreatedAt}}</p>
 9  </div>
10  <div class="commitside">
11    <span class="badge check-{{.Status}}">{{.Status}}</span>
12    <code><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/commit/{{.SHA}}">{{printf "%.10s" .SHA}}</a></code>
13  </div>
14</li>
15{{else}}<li class="empty">no builds — push a commit with a <code>.gitbay/ci.yml</code></li>{{end}}
16</ul>
17{{end}}