github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/prow/cmd/deck/template/job-history.html (about)

     1  {{define "title"}}Job History: {{.Name}}{{end}}
     2  {{define "scripts"}}
     3  <style>
     4    .run-success {
     5      background-color: rgba(0, 255, 0, 0.3);
     6    }
     7    .run-failure {
     8      background-color: rgba(255, 0, 0, 0.3);
     9    }
    10    .run-pending {
    11      background-color: rgba(255, 255, 0, 0.3);
    12    }
    13  </style>
    14  {{end}}
    15  {{define "content"}}
    16  <div class="table-container">
    17    <table id="history-table" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp" style="max-width: 1000px">
    18      <thead>
    19      <tr>
    20        <th class="mdl-data-table__cell--non-numeric">Build ID</th>
    21        <th class="mdl-data-table__cell--non-numeric">Started</th>
    22        <th class="mdl-data-table__cell--non-numeric">Duration</th>
    23        <th class="mdl-data-table__cell--non-numeric">Result</th>
    24      </tr>
    25      </thead>
    26      <tbody>
    27        {{range .Builds}}
    28        <tr class= {{if eq .Result "SUCCESS"}}"run-success"{{else if eq .Result "FAILURE"}}"run-failure"{{else}}"run-pending"{{end}}>
    29          <td class="mdl-data-table__cell--non-numeric">
    30            {{if .SpyglassLink}}<a href="{{.SpyglassLink}}">{{.ID}}</a>
    31            {{else}}{{.ID}}{{end}}
    32          </td>
    33          <td class="mdl-data-table__cell--non-numeric">{{.Started}}</td>
    34          <td class="mdl-data-table__cell--non-numeric">{{.Duration}}</td>
    35          <td class="mdl-data-table__cell--non-numeric">{{.Result}}</td>
    36        </tr>
    37        {{end}}
    38      </tbody>
    39    </table>
    40    <table style="max-width: 1000px">
    41      <tr>
    42        {{if .LatestLink}}
    43        <td><a href="{{.LatestLink}}">Latest Runs</a></td>
    44        {{end}}
    45        {{if .NewerLink}}
    46        <td><a href="{{.NewerLink}}">&lt;- Newer Runs</a></td>
    47        {{end}}
    48        {{if .OlderLink}}
    49        <td><a href="{{.OlderLink}}">Older Runs -&gt;</a></td>
    50        {{end}}
    51        <td></td>
    52      </tr>
    53    </table>
    54  </div>
    55  <br>
    56  <p>Showing {{.ResultsShown}}/{{.ResultsTotal}} results</p>
    57  {{end}}
    58  
    59  {{template "page" (settings mobileUnfriendly "job-history" .)}}