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

Unified Diff: Tools/GardeningServer/ui/ct-failure-stream.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
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 f520a5813f6a1882ed8a9920874adef41db7317b..43c2de3e00e411a23a93f1f66be073bb172f16f2 100644
--- a/Tools/GardeningServer/ui/ct-failure-stream.html
+++ b/Tools/GardeningServer/ui/ct-failure-stream.html
@@ -4,7 +4,9 @@ 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-failure-card.html">
+<link rel="import" href="ct-bot-failure-card.html">
+<link rel="import" href="ct-builder-failure-card.html">
+<link rel="import" href="ct-trooper-card.html">
<polymer-element name="ct-failure-stream" attributes="groups commitLog tree category title" noscript>
<template>
@@ -13,13 +15,18 @@ found in the LICENSE file.
display: block;
}
- ct-failure-card {
+ .card {
padding: 15px 5px;
border-bottom: 1px solid lightgrey;
+ display: flex;
+ }
+
+ .card > * {
+ flex: 1;
}
/* FIXME: Don't use before hax to add labels */
- ct-failure-card:first-of-type::before {
+ :host > div:first-of-type::before {
content: "{{ title }}:";
display: block;
font-weight: bold;
@@ -28,10 +35,27 @@ found in the LICENSE file.
background-color: #f5f5f5;
margin-bottom: 5px;
}
+
+ .snoozed {
+ opacity: 0.5;
+ }
</style>
<template repeat="{{ group in groups }}">
<template if="{{ group.category == category }}">
- <ct-failure-card group="{{ group }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-failure-card>
+ <div> <!-- FIXME: Remove when we have a better title solution. -->
+ <div class="card">
+ <template if="{{ group.data.category == 'sheriff' }}">
+ <ct-bot-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}" commitLog="{{ commitLog }}"></ct-bot-failure-card>
+ </template>
+ <template if="{{ group.data.category == 'builder' }}">
+ <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-builder-failure-card>
+ </template>
+ <template if="{{ group.data.category == 'trooper' }}">
+ <ct-trooper-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-trooper-card>
+ </template>
+ <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-failure-card-buttons>
+ </div>
+ </div>
</template>
</template>
</template>
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-card-buttons.html ('k') | Tools/GardeningServer/ui/ct-trooper-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698