OLD | NEW |
| (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 <polymer-element name="tom-cq-graph-item" attributes="item"> | |
8 <template> | |
9 <style> | |
10 a { | |
11 text-decoration: none; | |
12 } | |
13 .value { | |
14 color: {{ item.value >= item.alertThreshold ? 'red' : 'black' }}; | |
15 } | |
16 </style> | |
17 <li> | |
18 <span class="value">{{ item.value | toFixed }} {{ item.unit }}</span>: | |
19 <a href="{{ item.reviewURL }}">{{ item.reviewTitle ? item.reviewTitle : it
em.reviewURL }}</a> | |
20 - | |
21 <a href="//chromium-cq-status.appspot.com/patch-status/{{ item.issue }}/{{
item.patchset }}">[CQ Status]</a> | |
22 </li> | |
23 </template> | |
24 <script> | |
25 Polymer({ | |
26 toFixed: function(value) { | |
27 return value.toFixed(0); | |
28 }, | |
29 }); | |
30 </script> | |
31 </polymer-element> | |
OLD | NEW |