| OLD | NEW |
| (Empty) |
| 1 {{define "title"}}Builder {{ .Builder.Name }}{{end}} | |
| 2 | |
| 3 {{define "head"}} | |
| 4 <link id="favicon" rel="shortcut icon" | |
| 5 type="image/png" href="/static/common/favicon/milo-32.png"> | |
| 6 {{end}} | |
| 7 | |
| 8 {{define "body"}} | |
| 9 <h1>Builder {{.Builder.Name}}</h1> | |
| 10 | |
| 11 {{ if .Builder.CurrentBuilds }} | |
| 12 <h2>Current Builds ({{len .Builder.CurrentBuilds}}):</h2> | |
| 13 <ul> | |
| 14 {{ range .Builder.CurrentBuilds }} | |
| 15 <li>{{ .Link | linkify }} | |
| 16 {{ $nb := len .Blame }} | |
| 17 {{ if lt $nb 4 }} | |
| 18 {{ range $i, $c := .Blame }} | |
| 19 {{ if gt $i 0 }},{{ end }} | |
| 20 {{ if .Changelist }} | |
| 21 {{ .Changelist | linkify }} | |
| 22 {{ if .AuthorEmail }} | |
| 23 by {{ .AuthorEmail }} | |
| 24 {{ end }} | |
| 25 {{ else }} | |
| 26 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>) | |
| 27 {{ end }} | |
| 28 {{ end }} | |
| 29 {{ else }} | |
| 30 ({{ $nb }} changes) | |
| 31 {{ end }} | |
| 32 [Running for: {{ .ExecutionTime.Duration | humanDuration }}] | |
| 33 {{ range .Text }} {{ . }}{{ end }} | |
| 34 </li> | |
| 35 {{ end }} | |
| 36 </ul> | |
| 37 {{ else }} | |
| 38 <h2>No current builds</h2> | |
| 39 {{ end }} | |
| 40 | |
| 41 {{ if .Builder.PendingBuilds }} | |
| 42 <h2>Pending Build Requests ({{len .Builder.PendingBuilds}}):</h2> | |
| 43 <ul> | |
| 44 {{ range .Builder.PendingBuilds }} | |
| 45 <li><small>({{ .PendingTime.Started | localTime "" }}, waiting {{ .PendingTi
me.Duration | humanDuration }})</small> | |
| 46 | |
| 47 {{ $nb := len .Blame }} | |
| 48 {{ if lt $nb 4 }} | |
| 49 {{ range $i, $c := .Blame }} | |
| 50 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>) | |
| 51 {{ if ne $i (sub $nb 1) }},{{ end }} | |
| 52 {{ end }} | |
| 53 {{ else }} | |
| 54 ({{ $nb }} changes) | |
| 55 {{ end }} | |
| 56 | |
| 57 </li> | |
| 58 {{ end }} | |
| 59 </ul> | |
| 60 {{ else }} | |
| 61 <h2>No Pending Build Requests</h2> | |
| 62 {{ end }} | |
| 63 | |
| 64 {{ if .Builder.FinishedBuilds }} | |
| 65 <h2>Recent Builds:</h2> | |
| 66 | |
| 67 <table class="info"> | |
| 68 <tr> | |
| 69 <th>Time</th> | |
| 70 <th>Revision</th> | |
| 71 <th>Result</th> | |
| 72 <th>Build #</th> | |
| 73 <th>Changes</th> | |
| 74 <th>Info</th> | |
| 75 </tr> | |
| 76 | |
| 77 {{ range .Builder.FinishedBuilds }} | |
| 78 <tr> | |
| 79 <td>{{ .ExecutionTime.Finished | localTime "" }}</td> | |
| 80 <td class="revision">{{ .Revision }}</td> | |
| 81 {{ if eq .Status.String "Success" }} | |
| 82 <td class="status-Success">Success</td> | |
| 83 {{ else if eq .Status.String "Failure" }} | |
| 84 <td class="status-Failure">Failed</td> | |
| 85 {{ else if eq .Status.String "InfraFailure" }} | |
| 86 <td class="status-Exception">Infra Failure</td> | |
| 87 {{ else }} | |
| 88 <td> {{ .Status.String }} </td> | |
| 89 {{ end }} | |
| 90 <td>{{ .Link | linkify }}</td> | |
| 91 <td> | |
| 92 {{ $nb := len .Blame }} | |
| 93 {{ if lt $nb 4 }} | |
| 94 {{ range $i, $c := .Blame }} | |
| 95 {{ if gt $i 0 }},{{ end }} | |
| 96 {{ if .Changelist }} | |
| 97 {{ .Changelist | linkify }} | |
| 98 {{ if .AuthorEmail }} | |
| 99 by {{ .AuthorEmail }} | |
| 100 {{ end }} | |
| 101 {{ else }} | |
| 102 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>) | |
| 103 {{ end }} | |
| 104 {{ end }} | |
| 105 {{ else }} | |
| 106 ({{ $nb }} changes) | |
| 107 {{ end }} | |
| 108 </td> | |
| 109 <td class="left"> | |
| 110 {{ range $i, $value := .Text }} | |
| 111 {{ if gt $i 0 }}<br>{{ end }} | |
| 112 {{ . }} | |
| 113 {{ end }} | |
| 114 </td> | |
| 115 </tr> | |
| 116 {{ end }} | |
| 117 </table> | |
| 118 {{ else }} | |
| 119 <h2>No Recent Builds</h2> | |
| 120 {{ end }} | |
| 121 | |
| 122 (Show: | |
| 123 <a href=".">default</a> | |
| 124 <a href="?limit=25">25</a> | |
| 125 <a href="?limit=50">50</a> | |
| 126 <a href="?limit=100">100</a> | |
| 127 <a href="?limit=200">200</a> | |
| 128 ) | |
| 129 | |
| 130 {{end}} | |
| OLD | NEW |