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

Unified Diff: Tools/GardeningServer/ui/ct-bot-failure-card.html

Issue 565523002: [Sheriff-o-matic] Refactor cards and get rid of ct-failure-cards (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT-ed Created 6 years, 3 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/test/unit-tests.html ('k') | Tools/GardeningServer/ui/ct-builder-failure-card.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-bot-failure-card.html
diff --git a/Tools/GardeningServer/ui/ct-bot-failure-card.html b/Tools/GardeningServer/ui/ct-bot-failure-card.html
index ea4df82fcbf646f68123b75cee2afd4e96267114..f703f6af34a73b8c9d7671f891f98cf480f3f3c2 100644
--- a/Tools/GardeningServer/ui/ct-bot-failure-card.html
+++ b/Tools/GardeningServer/ui/ct-bot-failure-card.html
@@ -8,9 +8,13 @@ found in the LICENSE file.
<link rel="import" href="ct-commit-list.html">
<link rel="import" href="ct-test-list.html">
-<polymer-element name="ct-bot-failure-card" attributes="group builderList" noscript>
+<polymer-element name="ct-bot-failure-card" attributes="group commitLog" noscript>
<template>
<style>
+ :host {
+ display: flex;
+ }
+
ct-builder-grid {
margin-right: 10px;
width: 250px;
@@ -24,12 +28,29 @@ found in the LICENSE file.
flex: 1;
}
</style>
- <ct-builder-grid builderList="{{ builderList }}"></ct-builder-grid>
+ <ct-builder-grid builderList="{{ group.builderList }}"></ct-builder-grid>
<div id="failure">
<ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-list>
<ct-commit-list commitList="{{ group.commitList }}"></ct-commit-list>
</div>
</template>
+ <script>
+ Polymer({
+ group: null,
+ commitLog: null,
+ _builderList: null,
+
+ observe: {
+ group: '_updateCommitList',
+ commitLog: '_updateCommitList',
+ },
+
+ _updateCommitList: function() {
+ if (this.group && this.group.commitList && this.commitLog)
+ this.group.commitList.update(this.commitLog);
+ },
+ });
+ </script>
</polymer-element>
« no previous file with comments | « Tools/GardeningServer/test/unit-tests.html ('k') | Tools/GardeningServer/ui/ct-builder-failure-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698