2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
7 <link rel="import" href="ct-builder-failure-card.html">
8 <link rel="import" href="ct-failure-card-buttons.html">
9 <link rel="import" href="ct-master-failure-card.html">
10 <link rel="import" href="ct-step-failure-card.html">
11 <link rel="import" href="ct-trooper-card.html">
13 <polymer-element name="ct-failure-stream" attributes="groups commitLog category title" noscript>
18 word-wrap: break-word;
28 border-bottom: 1px solid lightgrey;
37 .card > ct-failure-card-buttons {
43 /* FIXME: Don't use before hax to add labels */
44 :host > div:first-of-type::before {
45 content: "{{ title }}:";
50 background-color: #f5f5f5;
58 @media (max-width: 1200px) {
59 .card > ct-failure-card-buttons {
64 flex-direction: column;
68 <template repeat="{{ group in groups }}">
69 <template if="{{ group.category == category }}">
70 <div> <!-- FIXME: Remove when we have a better title solution. -->
72 <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-failure-card-buttons>
74 <template if="{{ group.bug }}">
76 <span style="font-weight: bold">Bugs:</span>
77 <a href="{{ group.bug }}">{{ group.bugLabel }}</a>
80 <template if="{{ group.data.category == 'step' }}">
81 <ct-step-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}" commitLog="{{ commitLog }}"></ct-step-failure-card>
83 <template if="{{ group.data.category == 'master' }}">
84 <ct-master-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-master-failure-card>
86 <template if="{{ group.data.category == 'builder' }}">
87 <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-builder-failure-card>
89 <template if="{{ group.data.category == 'trooper' }}">
90 <ct-trooper-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-trooper-card>