Index: Tools/GardeningServer/ui/ct-failure-stream.html |
diff --git a/Tools/GardeningServer/ui/ct-failure-stream.html b/Tools/GardeningServer/ui/ct-failure-stream.html |
index 66753342ffdd1f29ef6302422ab49036695afb1c..5a556c66f7bf598c35761c917a386690bcf6f32d 100644 |
--- a/Tools/GardeningServer/ui/ct-failure-stream.html |
+++ b/Tools/GardeningServer/ui/ct-failure-stream.html |
@@ -4,6 +4,8 @@ Use of this source code is governed by a BSD-style license that can be |
found in the LICENSE file. |
--> |
+<link rel="import" href="../bower_components/core-collapse/core-collapse.html"> |
+<link rel="import" href="../bower_components/paper-toggle-button/paper-toggle-button.html"> |
<link rel="import" href="ct-failure-card.html"> |
<polymer-element name="ct-failure-stream" attributes="groups commits tree" noscript> |
@@ -19,8 +21,19 @@ found in the LICENSE file. |
border-top: 1px solid lightgrey; |
} |
</style> |
- <template repeat="{{failures in groups}}"> |
- <ct-failure-card failures="{{ failures }}" commits="{{ commits }}" tree="{{ tree }}"></ct-failure-card> |
+ Show snoozed failures: <paper-toggle-button checked="{{ showSnoozed }}"></paper-toggle-button> |
ojan
2014/08/06 04:03:01
We should only show this if there are any snoozed
dstockwell
2014/08/06 06:55:13
I've left them in the stream (but dimmed) for this
|
+ <core-collapse opened="{{showSnoozed}}" duration="0.3"> |
+ <template repeat="{{ group in groups }}"> |
+ <template if="{{ group.isSnoozed }}"> |
+ <ct-failure-card group="{{ group }}" commits="{{ commits }}" tree="{{ tree }}"></ct-failure-card> |
+ </template> |
+ </template> |
+ </core-collapse> |
+ |
+ <template repeat="{{ group in groups }}"> |
+ <template if="{{ !group.isSnoozed }}"> |
+ <ct-failure-card group="{{ group }}" commits="{{ commits }}" tree="{{ tree }}"></ct-failure-card> |
+ </template> |
</template> |
</template> |
</polymer-element> |