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

Side by Side Diff: Tools/GardeningServer/ui/ct-failure-card.html

Issue 555493005: [Sheriff-o-matic] Use before content hax to hide category labels instead of ever-present spans (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove premature builders category 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-failure-stream.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 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 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="../model/ct-builder-list.html"> 7 <link rel="import" href="../model/ct-builder-list.html">
8 <link rel="import" href="ct-bot-failure-card.html"> 8 <link rel="import" href="ct-bot-failure-card.html">
9 <link rel="import" href="ct-trooper-card.html"> 9 <link rel="import" href="ct-trooper-card.html">
10 <link rel="import" href="../bower_components/paper-dialog/paper-dialog.html"> 10 <link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
11 <link rel="import" href="../bower_components/paper-dialog/paper-dialog-transitio n.html"> 11 <link rel="import" href="../bower_components/paper-dialog/paper-dialog-transitio n.html">
12 <link rel="import" href="../bower_components/paper-input/paper-input.html"> 12 <link rel="import" href="../bower_components/paper-input/paper-input.html">
13 13
14 <polymer-element name="ct-failure-card" attributes="group commitLog tree bug"> 14 <polymer-element name="ct-failure-card" attributes="group commitLog tree bug">
15 <template> 15 <template>
16 <style> 16 <style>
17 :host { 17 :host {
18 display: block;
19 }
20
21 #container {
18 display: flex; 22 display: flex;
19 } 23 }
20 24
21 /* FIXME: All this paper-button styling should go in a cr-button component so that 25 /* FIXME: All this paper-button styling should go in a cr-button component so that
22 we can use buttons in different places and have them all look the same. */ 26 we can use buttons in different places and have them all look the same. */
23 paper-button { 27 paper-button {
24 -webkit-user-select: none; 28 -webkit-user-select: none;
25 background: #f5f5f5; 29 background: #f5f5f5;
26 border-radius: 2px; 30 border-radius: 2px;
27 border: 1px solid #dcdcdc; 31 border: 1px solid #dcdcdc;
(...skipping 26 matching lines...) Expand all
54 58
55 .card { 59 .card {
56 display: flex; 60 display: flex;
57 flex: 1; 61 flex: 1;
58 } 62 }
59 63
60 .snoozed { 64 .snoozed {
61 opacity: 0.5; 65 opacity: 0.5;
62 } 66 }
63 </style> 67 </style>
64 <div class="card {{ { snoozed: group.isSnoozed } | tokenList }}"> 68 <div id="container">
65 <template if="{{ group.data.type == 'sheriff' }}"> 69 <div class="card {{ { snoozed: group.isSnoozed } | tokenList }}">
66 <ct-bot-failure-card class='card' group="{{ group.data }}" builderList=" {{ _builderList }}"></ct-bot-failure-card> 70 <template if="{{ group.data.type == 'sheriff' }}">
67 </template> 71 <ct-bot-failure-card class='card' group="{{ group.data }}" builderList ="{{ _builderList }}"></ct-bot-failure-card>
68 <template if="{{ group.data.type != 'sheriff' }}"> 72 </template>
69 <ct-trooper-card class='card' group="{{ group.data }}"></ct-trooper-card > 73 <template if="{{ group.data.type != 'sheriff' }}">
70 </template> 74 <ct-trooper-card class='card' group="{{ group.data }}"></ct-trooper-ca rd>
75 </template>
76 </div>
77 <div id="buttons">
78 <paper-button id="examine" on-tap="{{ examine }}" label="Examine"></pape r-button>
79 <template if="{{ !group.isSnoozed }}">
80 <paper-button id="snooze" on-tap="{{ snooze }}" label="Snooze"></paper -button>
81 </template>
82 <template if="{{ group.isSnoozed }}">
83 <paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></p aper-button>
84 </template>
85 <paper-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></pa per-button>
86 <template if="{{ group.bug !== undefined }}">
87 <div>
88 <a href="{{ group.bug }}">
89 {{ group.bugLabel }}</a>
90 </div>
91 </template>
92 </div>
93
94 <paper-dialog heading="Enter bug number" transition="paper-transition-cent er" id="bugDialog">
95 <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></pape r-input>
96 <paper-button label="Remove bug link" on-tap="{{ removeBug }}" dismissiv e id="dialogRemoveBug"></paper-button>
97 <paper-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk "></paper-button>
98 </paper-dialog>
71 </div> 99 </div>
72 <div id="buttons">
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-b utton>
76 </template>
77 <template if="{{ group.isSnoozed }}">
78 <paper-button id="snooze" on-tap="{{ unsnooze }}" label="Unsnooze"></pap er-button>
79 </template>
80 <paper-button id="link-bug" on-tap="{{ linkBug }}" label="Link Bug"></pape r-button>
81 <template if="{{ group.bug !== undefined }}">
82 <div>
83 <a href="{{ group.bug }}">
84 {{ group.bugLabel }}</a>
85 </div>
86 </template>
87 </div>
88
89 <paper-dialog heading="Enter bug number" transition="paper-transition-center " id="bugDialog">
90 <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper- input>
91 <paper-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></paper-button>
92 <paper-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"> </paper-button>
93 </paper-dialog>
94 </template> 100 </template>
95 <script> 101 <script>
96 Polymer({ 102 Polymer({
97 group: null, 103 group: null,
98 commitLog: null, 104 commitLog: null,
99 _builderList: null, 105 _builderList: null,
100 tree: '', 106 tree: '',
101 107
102 observe: { 108 observe: {
103 group: '_updateCommitList', 109 group: '_updateCommitList',
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 saveBug: function() { 141 saveBug: function() {
136 this.group.setBug(this.$.bug.value); 142 this.group.setBug(this.$.bug.value);
137 }, 143 },
138 144
139 removeBug: function() { 145 removeBug: function() {
140 this.group.clearBug(); 146 this.group.clearBug();
141 }, 147 },
142 }); 148 });
143 </script> 149 </script>
144 </polymer-element> 150 </polymer-element>
OLDNEW
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-failure-stream.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698