internal/web/templates/builds.html

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

22 lines · 1059 bytes

 1{{define "title"}}builds · {{.Repo.OwnerName}}/{{.Repo.Name}}{{end}}
 2{{define "content"}}
 3<h1>Builds</h1>
 4<details class="editbox"><summary>Status badge</summary>
 5<p class="meta">Paste into a README; it shows the newest build's state.</p>
 6<pre class="code">[![build](https://{{.Host}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/badge/build.svg)](https://{{.Host}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/builds)</pre>
 7<p class="meta">Add <code>?job=name</code> for one job.</p>
 8</details>
 9<ul class="loglist">
10{{range .Builds}}<li>
11  <div class="commitmain">
12    <p class="subject"><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/builds/{{.Number}}">#{{.Number}} {{.Job}}</a></p>
13    <p class="meta">{{.Ref}} · {{when .CreatedAt}}</p>
14  </div>
15  <div class="commitside">
16    <span class="badge check-{{.Status}}">{{.Status}}</span>
17    <code><a href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/commit/{{.SHA}}">{{printf "%.10s" .SHA}}</a></code>
18  </div>
19</li>
20{{else}}<li class="empty">no builds — push a commit with a <code>.gitbay/ci.yml</code></li>{{end}}
21</ul>
22{{end}}