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-step-failure-card.html">
10 <link rel="import" href="ct-trooper-card.html">
12 <polymer-element name="ct-failure-stream" attributes="groups commitLog category title" noscript>
17 word-wrap: break-word;
27 border-bottom: 1px solid lightgrey;
36 .card > ct-failure-card-buttons {
42 /* FIXME: Don't use before hax to add labels */
43 :host > div:first-of-type::before {
44 content: "{{ title }}:";
49 background-color: #f5f5f5;
57 @media (max-width: 1200px) {
58 .card > ct-failure-card-buttons {
63 flex-direction: column;
67 <template repeat="{{ group in groups }}">
68 <template if="{{ group.category == category }}">
69 <div> <!-- FIXME: Remove when we have a better title solution. -->
71 <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-failure-card-buttons>
73 <template if="{{ group.bug }}">
75 <span style="font-weight: bold">Bugs:</span>
76 <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 == 'builder' }}">
84 <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-builder-failure-card>
86 <template if="{{ group.data.category == 'trooper' }}">
87 <ct-trooper-card class='{{ { snoozed: group.isSnoozed } | tokenList }}' group="{{ group.data }}"></ct-trooper-card>