in zuul-results-summary/zuul-results-summary.js [43:167]
static get template() {
return Polymer.html`
<style>
table {
table-layout: fixed;
width: 100%;
border-collapse: collapse;
}
th, td {
text-align: left;
padding: 2px;
}
th {
background-color: var(--background-color-primary, #f7ffff);
font-weight: normal;
color: var(--primary-text-color, rgb(33, 33, 33));
}
thead tr th:first-of-type,
tbody tr td:first-of-type {
padding-left: 12px;
}
a:link, a:visited {
color: var(--link-color);
}
tr:nth-child(even) {
background-color: var(--background-color-secondary, #f2f2f2);
}
tr:nth-child(odd) {
background-color: var(--background-color-tertiary, #f7ffff);
}
tr:hover td {
background-color: var(--hover-background-color, #fffed);
}
.status-SUCCESS {
color: green;
}
.status-FAILURE {
color: red;
}
.status-ERROR {
color: red;
}
.status-RETRY_LIMIT {
color: red;
}
.status-SKIPPED {
color: #73bcf7;
}
.status-ABORTED {
color: orange;
}
.status-MERGER_FAILURE {
color: orange;
}
.status-NODE_FAILURE {
color: orange;
}
.status-TIMED_OUT {
color: orange;
}
.status-POST_FAILURE {
color: orange;
}
.status-CONFIG_ERROR {
color: orange;
}
.status-DISK_FULL {
color: orange;
}
.date {
color: var(--deemphasized-text-color);
}
</style>
<template is="dom-if" if="[[!_enabled]]">
Zuul integration is not enabled.
</template>
<template is="dom-repeat" items="[[__table]]">
<div style="padding-bottom:2px;">
<table>
<thead>
<tr>
<th>
<template is="dom-if" if="{{item.succeeded}}"><span style="color:green"><iron-icon icon="gr-icons:check"></iron-icon></span></template>
<template is="dom-if" if="{{!item.succeeded}}"><span style="color:red"><iron-icon icon="gr-icons:close"></iron-icon></span></template>
<b>[[item.author_name]]</b> on Patchset <b>[[item.revision]]</b> in pipeline <b>[[item.pipeline]]</b></th>
<th><template is="dom-if" if="{{item.rechecks}}">[[item.rechecks]] rechecks</template></th>
<th><span class="date"><gr-date-formatter show-date-and-time="" date-str="[[item.gr_date]]"></gr-date-formatter></span></th>
</tr>
</thead>
<tbody>
<template is="dom-repeat" items="[[item.results]]" as="job">
<tr>
<template is="dom-if" if="{{job.link}}"><td><a href="{{job.link}}">[[job.job]]</a></td></template>
<template is="dom-if" if="{{!job.link}}"><td><span style="color: var(--secondary-text-color)">[[job.job]]</span></td></template>
<template is="dom-if" if="{{job.errormsg}}"><td><span title="[[job.errormsg]]" class$="status-[[job.result]]">[[job.result]]</span></td></template>
<template is="dom-if" if="{{!job.errormsg}}"><td><span class$="status-[[job.result]]">[[job.result]]</span></td></template>
<td>[[job.time]]</td>
</tr>
</template>
</tbody>
</table>
</div>
</template>`;
}