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-grid.html">
8 <link rel="import" href="ct-commit-list.html">
9 <link rel="import" href="ct-test-list.html">
11 <polymer-element name="ct-failure-card" attributes="group commits tree">
18 /* FIXME: All this paper-button styling should go in a cr-button component so that
19 we can use buttons in different places and have them all look the same. */
21 -webkit-user-select: none;
24 border: 1px solid #dcdcdc;
32 border: 1px solid #4d90fe;
37 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
40 paper-button:active, paper-button:hover {
42 border-color: #c6c6c6;
43 box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
58 flex-direction: column;
65 <ct-builder-grid failures="{{ group.failures }}"></ct-builder-grid>
66 <div id="failure" class="{{ { snoozed: group.isSnoozed } | tokenList }}">
67 <ct-test-list tests="{{ group.failures }}" tree="{{ tree }}"></ct-test-list>
68 <ct-commit-list first="{{ group.failures[0].lastPassingRevisions }}"
69 last="{{ group.failures[0].firstFailingRevisions }}"
70 commits="{{ commits }}"></ct-commit-list>
73 <paper-button id="examine" on-tap="{{ examine }}" label="Examine"></paper-button>
74 <template if="{{ !group.isSnoozed }}">
75 <paper-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></paper-button>
77 <template if="{{ group.isSnoozed }}">
78 <paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></paper-button>
89 this.fire('ct-examine-failures', this.group);
93 this.group.snoozeUntil(Date.now() + 60 * 60 * 1000);
96 unsnooze: function() {
97 this.group.unsnooze();