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

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

Issue 448503003: Adds a snooze button to the sheriff-o-matic ui (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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>

Powered by Google App Engine
This is Rietveld 408576698