| OLD | NEW |
| 1 {{define "title"}}Builder {{ .Builder.Name }}{{end}} | 1 {{define "title"}}Builder {{ .Builder.Name }}{{end}} |
| 2 | 2 |
| 3 {{define "head"}} | 3 {{define "head"}} |
| 4 <link id="favicon" rel="shortcut icon" | 4 <link id="favicon" rel="shortcut icon" |
| 5 type="image/png" href="/static/common/favicon/milo-32.png"> | 5 type="image/png" href="/static/common/favicon/milo-32.png"> |
| 6 {{end}} | 6 {{end}} |
| 7 | 7 |
| 8 {{define "body"}} | 8 {{define "body"}} |
| 9 <h1>Builder {{.Builder.Name}}</h1> | 9 <h1>Builder <a href="{{ pagedURL .Request -1 "EMPTY" }}">{{.Builder.Name}}</a></
h1> |
| 10 | 10 |
| 11 {{ if .Builder.CurrentBuilds }} | 11 {{ if .Builder.CurrentBuilds }} |
| 12 <h2>Current Builds ({{len .Builder.CurrentBuilds}}):</h2> | 12 <h2>Current Builds ({{len .Builder.CurrentBuilds}}):</h2> |
| 13 <ul> | 13 <ul> |
| 14 {{ range .Builder.CurrentBuilds }} | 14 {{ range .Builder.CurrentBuilds }} |
| 15 <li>{{ .Link | linkify }} | 15 <li>{{ .Link | linkify }} |
| 16 {{ $nb := len .Blame }} | 16 {{ $nb := len .Blame }} |
| 17 {{ if lt $nb 4 }} | 17 {{ if lt $nb 4 }} |
| 18 {{ range $i, $c := .Blame }} | 18 {{ range $i, $c := .Blame }} |
| 19 {{ if gt $i 0 }},{{ end }} | 19 {{ if gt $i 0 }},{{ end }} |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 {{ . }} | 112 {{ . }} |
| 113 {{ end }} | 113 {{ end }} |
| 114 </td> | 114 </td> |
| 115 </tr> | 115 </tr> |
| 116 {{ end }} | 116 {{ end }} |
| 117 </table> | 117 </table> |
| 118 {{ else }} | 118 {{ else }} |
| 119 <h2>No Recent Builds</h2> | 119 <h2>No Recent Builds</h2> |
| 120 {{ end }} | 120 {{ end }} |
| 121 | 121 |
| 122 {{ if .Builder.PrevCursor }}<a href="{{ pagedURL .Request 0 .Builder.PrevCursor
}}">Prev</a>{{ end }} |
| 122 (Show: | 123 (Show: |
| 123 <a href=".">default</a> | 124 <a href="{{ pagedURL .Request -1 "" }}">default</a> |
| 124 <a href="?limit=25">25</a> | 125 <a href="{{ pagedURL .Request 25 "" }}">25</a> |
| 125 <a href="?limit=50">50</a> | 126 <a href="{{ pagedURL .Request 50 "" }}">50</a> |
| 126 <a href="?limit=100">100</a> | 127 <a href="{{ pagedURL .Request 100 "" }}">100</a> |
| 127 <a href="?limit=200">200</a> | 128 <a href="{{ pagedURL .Request 200 "" }}">200</a> |
| 128 ) | 129 ) |
| 130 {{ if .Builder.NextCursor }}<a href="{{ pagedURL .Request 0 .Builder.NextCursor}
}">Next</a>{{ end }} |
| 129 | 131 |
| 130 {{end}} | 132 {{end}} |
| OLD | NEW |