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

Unified Diff: Tools/GardeningServer/ui/ct-builder.html

Issue 371133003: Add failed builders to sheriff-o-matic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: async instead of endMicrotask Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/GardeningServer/run-unittests.html ('k') | Tools/GardeningServer/ui/ct-builder-tests.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-builder.html
diff --git a/Tools/GardeningServer/ui/ct-builder.html b/Tools/GardeningServer/ui/ct-builder.html
index 97cf7baa3493e338778c19224cac75e94c5ff933..cd8c6fc3698d7de65b0b50119643f2633da508bb 100644
--- a/Tools/GardeningServer/ui/ct-builder.html
+++ b/Tools/GardeningServer/ui/ct-builder.html
@@ -4,8 +4,12 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<!-- Styled link to a builder composed of the version and architecture. -->
-<polymer-element name="ct-builder" attributes="builderName">
+<!--
+Styled link to a builder composed of the version and architecture, or the
+builder name if the builder is unknown. If an array is passed to |steps|, the
+link will show the builder name and architecture followed by the steps instead.
+-->
+<polymer-element name="ct-builder" attributes="builderName steps">
<template>
<style>
a {
@@ -26,30 +30,51 @@ found in the LICENSE file.
.version {
background-color: #555;
color: white;
+ }
+
+ .version:not(.architecture) {
text-transform: uppercase;
}
+
+ .details {
+ padding-left: 3px;
+ }
</style>
<a href="{{ builderName|builderURL }}">
<template if="{{ configuration }}">
<span class="version">{{ configuration.version }}</span>
<template if="{{ configuration.is64bit }}">
- <span class="architecture">64-bit</span>
+ <template if="{{ stepList }}">
+ <span class="version architecture">64-bit</span>
+ </template>
+ <template if="{{ !stepList }}">
+ <span>64-bit</span>
+ </template>
</template>
</template>
<template if="{{ !configuration }}">
<span class="version">{{ builderName }}</span>
</template>
+ <template if="{{ stepList }}">
+ <span class="details">{{ stepList }}</span>
+ </template>
</a>
</template>
<script>
Polymer({
+ steps: [],
+
ready: function() {
this.configuration = config.builders[this.builderName];
},
+ stepsChanged: function() {
+ this.stepList = this.steps.join(', ');
+ },
+
builderURL: function() {
- return config.waterfallURL + '?builder=' +
- encodeURIComponent(this.builderName);
+ return config.waterfallURL + '?builder=' +
+ encodeURIComponent(this.builderName);
},
});
</script>
« no previous file with comments | « Tools/GardeningServer/run-unittests.html ('k') | Tools/GardeningServer/ui/ct-builder-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698