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

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

Issue 476903004: [sheriff-o-matic]: Basic trooper display for sheriff-o-matic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
OLDNEW
(Empty)
1 <!--
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.
5 -->
6
7
8 <polymer-element name="ct-tree-status-card" attributes="group">
9 <template>
10 <style>
11 #failure {
12 flex: 1;
13 }
14
15 #details {
16 color: red;
17 font-weight: bold;
18 }
19
20 .snoozed {
21 opacity: 0.5;
22 }
23 </style>
24 <div id="failure" class="{{ { snoozed: group.isSnoozed } | tokenList }}">
25 <div id="details">
26 {{ group.tree }}: {{ group.data.details }}
27 </div>
28 <div id='chart'></div>
29 <div><a href="{{ group.data.url }}">link</a>
30 </div>
ojan 2014/09/02 02:35:11 This formatting is funky.
shans 2014/09/04 01:59:43 Acknowledged.
31 </template>
32 <script>
33 Polymer('ct-tree-status-card', {
ojan 2014/09/02 02:35:11 No need for the string name here. It's inferred fo
shans 2014/09/04 01:59:43 Done.
34 group: null,
35 commits: null,
36 _commits: function() {
37 if (!this.group)
38 return undefined;
39 return this.group.commitList(this.commits);
40 },
41 ready: function() {
42 var dataTable = google.visualization.arrayToDataTable([
43 ['', 'Minimum', 'Actual'],
44 ['Open', 80, this.group.data.percent_open]
45 ]);
46
47 var options = {
48 title: 'tree status',
49 vAxis: {minValue: 0},
50 series: [{color: 'grey'}, {color: 'red'}]
51 };
52
53 var chart = new google.visualization.ColumnChart(this.$.chart);
54 chart.draw(dataTable, options);
55 },
56 });
57 </script>
58 </polymer-element>
59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698