| Index: milo/frontend/templates/pages/build.html
|
| diff --git a/milo/frontend/templates/pages/build.html b/milo/frontend/templates/pages/build.html
|
| deleted file mode 100644
|
| index 8d2fcd968adc4dd541b08e193170733d0d617842..0000000000000000000000000000000000000000
|
| --- a/milo/frontend/templates/pages/build.html
|
| +++ /dev/null
|
| @@ -1,353 +0,0 @@
|
| -{{define "title"}}
|
| - {{ with .Build.Summary -}}
|
| - {{ if eq .Status.String "InfraFailure" }}
|
| - Infra Failure
|
| - {{ else if eq .Status.String "Exception" }}
|
| - Exception
|
| - {{ else if eq .Status.String "Failure" }}
|
| - Failed
|
| - {{ else if eq .Status.String "NotRun" }}
|
| - Pending
|
| - {{ else }}
|
| - {{ .Status.String }}
|
| - {{ end }}
|
| - -
|
| - {{ if .ParentLabel }} {{ .ParentLabel.Label }} {{ end }}
|
| - {{ .Label }}
|
| - {{- end }}
|
| -{{end}}
|
| -
|
| -{{define "head"}}
|
| -<link id="favicon" rel="shortcut icon" type="image/png" href="/static/common/favicon/
|
| -{{- with .Build.Summary.Status.String -}}
|
| - {{- if eq . "Running" -}} yellow
|
| - {{- else if eq . "Success" -}} green
|
| - {{- else if eq . "InfraFailure" -}} purple
|
| - {{- else if eq . "Exception" -}} purple
|
| - {{- else if eq . "Expired" -}} darkpurple
|
| - {{- else if eq . "Failure" -}} red
|
| - {{- else if eq . "NotRun" -}} gray
|
| - {{- else if eq . "Warning" -}} yellow
|
| - {{- else if eq . "DependencyFailure" -}} redamber
|
| - {{- else if eq . "WaitingDependency" -}} brown
|
| - {{- else -}} milo
|
| - {{- end -}}
|
| -{{- end -}}-32.png">
|
| -
|
| -{{end}}
|
| -
|
| -{{define "body"}}
|
| - <div class="content">
|
| - <h1>
|
| - {{ if .Build.Summary.ParentLabel }}
|
| - Builder {{ .Build.Summary.ParentLabel | linkify }}
|
| - {{ end }}
|
| - Build {{.Build.Summary.Label}}
|
| - {{ if .Build.Summary.Banner }}
|
| - {{ range .Build.Summary.Banner.OS }}
|
| - <img src="/static/common/logos/{{.LogoBase.Img}}" alt="{{.LogoBase.Alt}}"
|
| - width="25px">
|
| - {{ end }}
|
| - {{ range .Build.Summary.Banner.Device }}
|
| - <img src="/static/common/logos/{{.LogoBase.Img}}" alt="{{.LogoBase.Alt}}"
|
| - width="25px">
|
| - {{ end }}
|
| - {{ end }}
|
| - </h1>
|
| -
|
| - <div class="column">
|
| -
|
| - <h2>Results:</h2>
|
| - {{ with .Build.Summary }}
|
| - {{ if eq .Status.String "Running" }}
|
| - <p class="running result">Build Running
|
| - {{ else if eq .Status.String "Success" }}
|
| - <p class="success result">Build Successful
|
| - {{ else if eq .Status.String "InfraFailure" }}
|
| - <p class="exception result">Internal Failure
|
| - {{ else if eq .Status.String "Exception" }}
|
| - <p class="exception result">Exception
|
| - {{ else if eq .Status.String "Expired" }}
|
| - <p class="expired result">Internal Failure - Expired
|
| - {{ else if eq .Status.String "Failure" }}
|
| - <p class="failure result">Build Failed
|
| - {{ else if eq .Status.String "NotRun" }}
|
| - <p class="pending result">Build Pending
|
| - {{ else }}
|
| - <p class="failure result">Unknown status {{.Status.String }}
|
| - {{ end }}
|
| - <span class="subtitle">
|
| - {{ range .Text }}<div class="step-text">{{ . }}</div>{{ end }}
|
| - </span>
|
| - </p>
|
| - {{ end }} <!-- with -->
|
| -
|
| -
|
| - {{ if .Build.SourceStamp }}
|
| - {{ with .Build.SourceStamp }}
|
| -
|
| - <h2>SourceStamp:</h2>
|
| -
|
| - <table class="info" width="100%">
|
| -
|
| - {{ if .Commit.Repo }}
|
| - <tr><td class="left">Repository</td><td>{{ .Commit.Repo }}</td></tr>
|
| - {{ end }}
|
| -
|
| - {{ if .Commit.Branch }}
|
| - <tr><td class="left">Branch</td><td>{{ .Commit.Branch }}</td></tr>
|
| - {{ end }}
|
| -
|
| - {{ if .Commit.RequestRevision }}
|
| - <tr><td class="left">Revision</td><td>{{ .Commit.RequestRevision | linkify }}</td></tr>
|
| - {{ end }}
|
| -
|
| - {{ if .Commit.Revision }}
|
| - <tr><td class="left">Got Revision</td><td>{{ .Commit.Revision | linkify }}</td></tr>
|
| - {{ end }}
|
| -
|
| - {{ if .Commit.Changelist }}
|
| - <tr><td class="left">Patch</td><td>{{ .Commit.Changelist | linkify }}</td></tr>
|
| - {{ end }}
|
| -
|
| - </table>
|
| - {{ end }} <!-- with -->
|
| - {{ end }} <!-- if -->
|
| -
|
| - {{ if or .Build.Summary.Bot .Build.Summary.Source }}
|
| - <h2>Execution:</h2>
|
| - <ul>
|
| - {{ if .Build.Summary.Source }}
|
| - <li>
|
| - Source:
|
| - <a href="{{ .Build.Summary.Source.URL }}">{{ .Build.Summary.Source.Label }}</a>
|
| - </li>
|
| - {{ end }}
|
| -
|
| - {{ if .Build.Summary.Bot }}
|
| - <li>
|
| - Bot:
|
| - <a href="{{ .Build.Summary.Bot.URL }}">{{ .Build.Summary.Bot.Label }}</a>
|
| - </li>
|
| - {{ end }}
|
| -
|
| - {{ if .Build.Summary.Recipe}}
|
| - <li>
|
| - Recipe: {{ .Build.Summary.Recipe | linkify }}
|
| - </li>
|
| - {{ end }}
|
| - </ul>
|
| - {{ end }} <!-- if -->
|
| -
|
| - {{ if .Build.SourceStamp }}
|
| - {{ if .Build.SourceStamp.Source }}
|
| - <h2>Reason:</h2>
|
| - <p>{{ .Source }}</p>
|
| - {{ end }}
|
| - {{ end }}
|
| -
|
| - {{ if or .Build.Components .Build.Summary.SubLink }}
|
| - <h2>Steps and Logfiles:</h2>
|
| - Show:
|
| - <input type="radio" name="hider" id="showAll">
|
| - <label for="showAll">All</label>
|
| - <input type="radio" name="hider" id="showStandard" checked>
|
| - <label for="showStandard">Standard</label>
|
| - <input type="radio" name="hider" id="showInteresting">
|
| - <label for="showInteresting">Non-Green Only</label>
|
| - <ol id="steps" class="standard">
|
| -
|
| - {{ with .Build.Summary }}
|
| - {{ if .SubLink }}
|
| - <li class="verbosity-{{.Verbosity.String}}">
|
| - <div class="status-{{.Status}} result">
|
| - {{ if .Duration -}}
|
| - <span class="duration"
|
| - data-starttime="{{ .Started | formatTime }}"
|
| - {{ if .Finished }}data-endtime="{{ .Finished | formatTime }}"{{ end }}>
|
| - ( {{ .Duration | humanDuration }} )</span>
|
| - {{- end }}
|
| - <b>Steps</b>
|
| - </div>
|
| - <ul>
|
| - {{ range .SubLink }}
|
| - <li class="sublink">{{ . | linkifySet }}</li>
|
| - {{ end }}
|
| - </ul>
|
| - </li>
|
| - {{ end }}
|
| - {{ end }}
|
| -
|
| - {{ range .Build.Components }}
|
| - <li class="verbosity-{{.Verbosity.String}}">
|
| - <div class="status-{{.Status}} result">
|
| - {{ if .Duration -}}
|
| - <span class="duration"
|
| - data-starttime="{{ .Started | formatTime }}"
|
| - {{ if .Finished }}data-endtime="{{ .Finished | formatTime }}"{{ end }}>
|
| - ( {{ .Duration | humanDuration }} )</span>
|
| - {{- end }}
|
| - <b>{{.Label}}</b>
|
| - <span>
|
| - {{ range .Text -}}
|
| - <div class="step-text">
|
| - {{- if . -}}{{- . -}}{{- else -}} {{- end -}}
|
| - </div>
|
| - {{- end }}
|
| - </span>
|
| - </div>
|
| - <ul>
|
| - {{ if .MainLink }}
|
| - <li class="sublink">{{.MainLink | linkifySet}}</li>
|
| - {{- if eq .Verbosity.String "Interesting" -}}
|
| - {{ range .MainLink }}
|
| - <link rel="prerender" href="{{.URL}}">
|
| - <link rel="prefetch" href="{{.URL}}">
|
| - {{ end }}
|
| - {{ end }}
|
| - {{- end }}
|
| - {{ range .SubLink }}
|
| - <li class="sublink">{{. | linkifySet}}</li>
|
| - {{ end }}
|
| - {{ if not (or .MainLink .SubLink) }}
|
| - <li class="sublink"> - no logs - </li>
|
| - {{ end }}
|
| - </ul>
|
| - </li>
|
| - {{ end }}
|
| - </ol>
|
| - {{ end }} <!-- if .Build.Components -->
|
| -
|
| - </div>
|
| -
|
| - <div class="column">
|
| -
|
| - <h2>Build Properties:</h2>
|
| -
|
| - <table class="info BuildProperties" width="100%">
|
| - <tr><th>Name</th><th>Value</th><th>Source</th></tr>
|
| -
|
| - {{ range .Build.PropertyGroup }}
|
| - {{ $name := .GroupName }}
|
| - {{ range .Property }}
|
| - <tr>
|
| - <td class="left">{{.Key}}</td>
|
| - <td class="middle"><abbr title="{{.Value}}">{{.Value}}</abbr></td>
|
| - <td>{{$name}}</td>
|
| - </tr>
|
| - {{ end }}
|
| - {{ end }}
|
| - </table>
|
| -
|
| - {{ if .Build.Blame }}
|
| - <h2>Blamelist:</h2>
|
| - <ol>
|
| - {{ range .Build.Blame }}
|
| - <li>{{ .AuthorName }} ({{ .AuthorEmail | obfuscateEmail }})</li>
|
| - {{ end }}
|
| - </ol>
|
| - {{ end }}
|
| -
|
| - <h2>Timing:</h2>
|
| - <table class="info" width="100%">
|
| - <tr class="alt"><td class="left">Start</td>
|
| - <td>
|
| - {{ .Build.Summary.Started | localTime "N/A" }}
|
| - </td></tr>
|
| - <tr><td class="left">End</td>
|
| - <td>
|
| - {{ .Build.Summary.Finished | localTime "N/A" }}
|
| - </td></tr>
|
| - <tr class="alt"><td class="left">Elapsed</td>
|
| - <td id="duration">
|
| - {{ if .Build.Summary.Started.IsZero }}
|
| - N/A
|
| - {{ else }}
|
| - {{ .Build.Summary.Duration | humanDuration }}
|
| - {{ end }}
|
| - </td></tr>
|
| - </table>
|
| -
|
| - </div>
|
| -
|
| - {{ if .Build.Blame}}
|
| - <div class="column">
|
| - <h2>All Changes:</h2>
|
| - <ol>
|
| - {{ range .Build.Blame }}
|
| - <li>
|
| - <h3>{{.Title}}</h3>
|
| - <table class="info">
|
| - <tbody>
|
| - <tr>
|
| - <td class="left">Changed by</td>
|
| - <td class="value">
|
| - {{ if .AuthorName }}{{ .AuthorName }} - {{ end }}
|
| - {{ .AuthorEmail | obfuscateEmail }}
|
| - </td>
|
| - </tr>
|
| - <tr>
|
| - <td class="left">Changed at</td>
|
| - <td class="value">{{ .CommitTime | localTime "N/A" }}</td>
|
| - </tr>
|
| - <tr>
|
| - <td class="left">Repository</td>
|
| - <td class="value">{{ .Repo }}</td>
|
| - </tr>
|
| - <tr>
|
| - <td class="left">Branch</td>
|
| - <td class="value">{{ .Branch }}</td>
|
| - </tr>
|
| - <tr>
|
| - <td class="left">Revision</td>
|
| - <td class="value">{{ .Revision | linkify }}</td>
|
| - </tr>
|
| - </tbody>
|
| - </table>
|
| -
|
| - {{ if .Description }}
|
| - <h3>Comments</h3>
|
| - <pre class="comments">{{ .Description }}</pre>
|
| - {{ end }}
|
| -
|
| - {{ if .File }}
|
| - <h3 class="files">Changed files</h3>
|
| - <ul class="alternating">
|
| - {{ range .File }}
|
| - <li class="file">{{ . }}</li>
|
| - {{ end }}
|
| - </ul>
|
| - {{ end }}
|
| -
|
| - </li>
|
| - {{ end }}
|
| - </ol>
|
| - </div>
|
| - {{ end }}
|
| - </div>
|
| -</div>
|
| -<script language="javascript">
|
| -$(document).ready(function() {
|
| -
|
| - var check = function(className) {
|
| - $("#steps").removeClass("all standard interesting").addClass(className)
|
| - }
|
| -
|
| - $("#showInteresting").click(function(e) {
|
| - check("interesting");
|
| - });
|
| - $("#showStandard").click(function(e) {
|
| - check("standard");
|
| - });
|
| - $("#showAll").click(function(e) {
|
| - check("all");
|
| - });
|
| -
|
| - $("input[name='hider']").each(function(){
|
| - if ($(this).prop("checked")) {
|
| - $(this).click();
|
| - }
|
| - });
|
| -});
|
| -</script>
|
| -{{end}}
|
|
|