Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Side by Side Diff: milo/appengine/frontend/templates/bootstrap/pages/builder.html

Issue 2748073006: Milo Refactor: Remove theme support (Closed)
Patch Set: Fix builder.html pointer Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {{define "title"}}Builder {{.Builder.Name}}{{end}}
2
3 {{define "head"}}{{end}}
4
5 {{define "body"}}
6
7 <div class="row">
8
9 <div class="col-md-6">
10 {{ if .Builder.CurrentBuilds }}
11 <h4>Current Builds</h4>
12 <ul>
13 {{ range .Builder.CurrentBuilds }}
14 <li>{{ .Link | linkify }}</a>
15 [Running for: {{ .ExecutionTime.Duration }}]
16 {{ .Text }}
17 </li>
18 {{ end }}
19 </ul>
20 {{ else }}
21 <h5>No current builds</h5>
22 {{ end }}
23 </div>
24
25 <div class="col-md-6">
26 {{ if .Builder.CurrentBuilds }}
27 <h4>Pending Build Requests</h4>
28 <ul>
29 {{ range .Builder.PendingBuilds }}
30 <li><small>({{ .PendingTime.Started | localTime "" }}, waiting {{ .Pendi ngTime.Duration }})</small>
31 {{ $nb := len .Blame }}
32 {{ if lt $nb 4 }}
33 {{ range $i, $c := .Blame }}
34 (<a href="{{ .CommitURL }}">{{ .AuthorEmail }}</a>)
35 {{ if ne $i (sub $nb 1) }},{{ end }}
36 {{ end }}
37 {{ else }}
38 ({{ $nb }} changes)
39 {{ end }}
40 </li>
41 {{ end }}
42 </ul>
43 {{ else }}
44 <h5>No Pending Build Requests</h5>
45 {{ end }}
46 </div>
47
48 <div class="col-md-6">
49 <h2>Recent Builds:</h2>
50 <table class="table table-condensed table-hover table-striped">
51 <tr>
52 <th>Time</th>
53 <th>Revision</th>
54 <th>Result</th>
55 <th>Build #</th>
56 <th>Info</th>
57 </tr>
58
59 {{ range .Builder.FinishedBuilds }}
60 {{ if eq .Status.String "Success" }}
61 <tr class="success">
62 <td>{{ .ExecutionTime.Finished | localTime "" }}</td>
63 <td class="revision">{{ .Revision | shortHash}}</td>
64 <td>Success</td>
65 <td><a href="{{ .URL }}">{{ .URL }}</a></td>
66 <td class="left">{{ .Text }}</td>
67 </tr>
68 {{ else if eq .Status.String "Failure" }}
69 <tr class="danger">
70 <td>{{ .ExecutionTime.Finished | localTime "" }}</td>
71 <td>{{ .Revision | shortHash }}</td>
72 <td class="danger">Failed</td>
73 <td><a href="{{ .URL }}">{{ .URL }}</a></td>
74 <td class="left">{{ .Text }}</td>
75 </tr>
76 {{ else }}
77 <tr>
78 <td>{{ .ExecutionTime.Finished | localTime "" }}</td>
79 <td>{{ .Revision | shortHash }}</td>
80 <td> {{ .Status.String }} </td>
81 <td>{{.Link | linkify}}</td>
82 <td class="left">{{ .Text }}</td>
83 </tr>
84 {{ end }}
85 {{ end }}
86 </table>
87 </div>
88
89 </div>
90 {{ end }}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698