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

Side by Side Diff: dashboard/dashboard/elements/chart-tooltip.html

Issue 2569523003: wip (Closed)
Patch Set: wip Created 3 years, 12 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
« no previous file with comments | « dashboard/dashboard/elements/chart-container.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved. 3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <!-- 7 <!--
8 The chart-tooltip element is the box that is shown when you hover over or click 8 The chart-tooltip element is the box that is shown when you hover over or click
9 on a point on a graph. It shows more detailed information about the point that 9 on a point on a graph. It shows more detailed information about the point that
10 was just clicked. 10 was just clicked.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 <template is="dom-if" if="{{bugId}}"> 79 <template is="dom-if" if="{{bugId}}">
80 <div> 80 <div>
81 <span hidden$={{alertInvalidOrIgnored}}>Bug ID: 81 <span hidden$={{alertInvalidOrIgnored}}>Bug ID:
82 <b><a target="_blank" href="http://crbug.com/{{bugId}}">{{bugId} }</a></b> 82 <b><a target="_blank" href="http://crbug.com/{{bugId}}">{{bugId} }</a></b>
83 </span> 83 </span>
84 84
85 <span hidden$="{{bugNotInvalid(bugId)}}">Invalid alert</span> 85 <span hidden$="{{bugNotInvalid(bugId)}}">Invalid alert</span>
86 <span hidden$="{{bugNotIgnored(bugId)}}">Ignored alert</span> 86 <span hidden$="{{bugNotIgnored(bugId)}}">Ignored alert</span>
87 <span hidden$="{{!recovered}}">Recovered alert</span> 87 <span hidden$="{{!recovered}}">Recovered alert</span>
88 <alert-remove-box key="{{alertKey}}" xsrf-token="{{xsrfToken}}" on -untriaged="onUntriaged"> 88 <alert-remove-box key="{{alertKey}}" xsrf-token="{{xsrfToken}}" on -untriaged="onUntriaged" bug-id="{{bugId}}">
89 </alert-remove-box><br> 89 </alert-remove-box><br>
90 <a href="/group_report?keys={{alertKey}}">View alert graph</a> 90 <a href="/group_report?keys={{alertKey}}">View alert graph</a>
91 </div> 91 </div>
92 </template> 92 </template>
93 93
94 <div> 94 <div>
95 <template is="dom-repeat" items={{revisions}}> 95 <template is="dom-repeat" items={{revisions}}>
96 {{item.name}}<template is="dom-if" bind if="{{item.displayStart}}" > range</template>: 96 {{item.name}}<template is="dom-if" bind if="{{item.displayStart}}" > range</template>:
97 <b> 97 <b>
98 <a href="{{item.url}}" on-click="onRevisionRangeClick"> 98 <a href="{{item.url}}" on-click="onRevisionRangeClick">
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 this.$.triage.show(); 195 this.$.triage.show();
196 } else { 196 } else {
197 this.$.triage.close(); 197 this.$.triage.close();
198 } 198 }
199 }, 199 },
200 200
201 /** 201 /**
202 * Fires a 'triaged' event, which should be caught in chart-container. 202 * Fires a 'triaged' event, which should be caught in chart-container.
203 */ 203 */
204 onUntriaged: function(event, detail) { 204 onUntriaged: function(event, detail) {
205 console.log('untriaged tooltip');
206 console.log(this.triagedAlerts);
205 this.fire('triaged', { 207 this.fire('triaged', {
206 'alerts': this.triagedAlerts, 208 'alerts': this.triagedAlerts,
207 'bugid': null 209 'bugid': null
208 }); 210 });
209 }, 211 },
210 212
211 open: function() { 213 open: function() {
212 var oldLeft = this.$.container.offsetLeft; 214 var oldLeft = this.$.container.offsetLeft;
213 var oldTop = this.$.container.offsetTop; 215 var oldTop = this.$.container.offsetTop;
214 openAtPosition(oldTop, oldLeft); 216 openAtPosition(oldTop, oldLeft);
(...skipping 13 matching lines...) Expand all
228 230
229 bugNotInvalid: function(bugId) { 231 bugNotInvalid: function(bugId) {
230 return bugId != -1; 232 return bugId != -1;
231 }, 233 },
232 bugNotIgnored: function(bugId) { 234 bugNotIgnored: function(bugId) {
233 return bugId != -2; 235 return bugId != -2;
234 } 236 }
235 }); 237 });
236 </script> 238 </script>
237 </dom-module> 239 </dom-module>
OLDNEW
« no previous file with comments | « dashboard/dashboard/elements/chart-container.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698