Index: Tools/GardeningServer/ui/ct-failure-card.html |
diff --git a/Tools/GardeningServer/ui/ct-failure-card.html b/Tools/GardeningServer/ui/ct-failure-card.html |
index 84dca8b99bc095496a5a6785ab3384426da56358..3380bbfdad6e28449080be6d5f6b8607e3bedc36 100644 |
--- a/Tools/GardeningServer/ui/ct-failure-card.html |
+++ b/Tools/GardeningServer/ui/ct-failure-card.html |
@@ -4,9 +4,10 @@ Use of this source code is governed by a BSD-style license that can be |
found in the LICENSE file. |
--> |
-<link rel="import" href="ct-builder-grid.html"> |
-<link rel="import" href="ct-commit-list.html"> |
-<link rel="import" href="ct-test-list.html"> |
+<link rel="import" href="ct-sheriff-card.html"> |
+<link rel="import" href="ct-cq-latency-card.html"> |
+<link rel="import" href="ct-tree-status-card.html"> |
+<link rel="import" href="ct-cycle-time-card.html"> |
<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html"> |
<link rel="import" href="../bower_components/paper-dialog/paper-dialog-transition.html"> |
<link rel="import" href="../bower_components/paper-input/paper-input.html"> |
@@ -47,29 +48,27 @@ found in the LICENSE file. |
color: #222; |
} |
- ct-builder-grid { |
- margin-right: 10px; |
- width: 250px; |
- } |
- |
- #failure { |
- flex: 1; |
- } |
- |
#buttons { |
display: flex; |
flex-direction: column; |
} |
- .snoozed { |
ojan
2014/09/02 02:35:11
Let's put the snoozed out here and put it on a div
shans
2014/09/04 01:59:43
Done.
|
- opacity: 0.5; |
+ .card { |
+ flex: 1; |
} |
</style> |
- <ct-builder-grid failures="{{ group.failures }}"></ct-builder-grid> |
- <div id="failure" class="{{ { snoozed: group.isSnoozed } | tokenList }}"> |
- <ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-list> |
- <ct-commit-list commitList="{{ group.commitList }}"></ct-commit-list> |
- </div> |
+ <template if="{{ group.type == 'sheriff' }}"> |
ojan
2014/09/02 02:35:11
Instead of ct-failure-card containing different ty
shans
2014/09/04 01:59:43
I think the spirit of this is done now (ct-trooper
|
+ <ct-sheriff-card class='card' group="{{ group }}"></ct-sheriff-card> |
+ </template> |
+ <template if="{{ group.type == 'cq_latency' }}"> |
+ <ct-cq-latency-card class='card' group="{{ group }}"></ct-cq-latency-card> |
+ </template> |
+ <template if="{{ group.type == 'tree_status' }}"> |
+ <ct-tree-status-card class='card' group="{{ group }}"></ct-tree-status-card> |
+ </template> |
+ <template if="{{ group.type == 'cycle_time' }}"> |
+ <ct-cycle-time-card class='card' group="{{ group }}"></ct-cycle-time-card> |
+ </template> |
<div id="buttons"> |
<paper-button id="examine" on-tap="{{ examine }}" label="Examine"></paper-button> |
<template if="{{ !group.isSnoozed }}"> |
@@ -117,7 +116,7 @@ found in the LICENSE file. |
}, |
_updateCommitList: function() { |
- if (this.group && this.commitLog) |
+ if (this.group && this.group.commitList && this.commitLog) |
this.group.commitList.update(this.commitLog); |
}, |