OLD | NEW |
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="ct-builder-failure-card.html"> | 7 <link rel="import" href="ct-builder-failure-card.html"> |
8 <link rel="import" href="ct-failure-card-buttons.html"> | 8 <link rel="import" href="ct-failure-card-buttons.html"> |
9 <link rel="import" href="ct-master-failure-card.html"> | 9 <link rel="import" href="ct-master-failure-card.html"> |
10 <link rel="import" href="ct-step-failure-card.html"> | 10 <link rel="import" href="ct-step-failure-card.html"> |
11 | 11 |
12 <polymer-element name="ct-failure-stream" attributes="groups commitLog category
caption" noscript> | 12 <polymer-element name="ct-failure-stream" attributes="groups commitLog category
caption"> |
13 <template> | 13 <template> |
14 <style> | 14 <style> |
15 :host { | 15 :host { |
16 display: block; | 16 display: block; |
17 word-wrap: break-word; | 17 word-wrap: break-word; |
18 } | 18 } |
19 | 19 |
20 .bugs { | 20 .bugs { |
21 margin-bottom: 10px; | 21 margin-bottom: 10px; |
22 min-height: 24px; | 22 min-height: 24px; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 </style> | 66 </style> |
67 <template repeat="{{ group in groups }}"> | 67 <template repeat="{{ group in groups }}"> |
68 <template if="{{ group.category == category && group.data.category != 'tro
oper' }}"> | 68 <template if="{{ group.category == category && group.data.category != 'tro
oper' }}"> |
69 <div> <!-- FIXME: Remove when we have a better title solution. --> | 69 <div> <!-- FIXME: Remove when we have a better title solution. --> |
70 <div class="card"> | 70 <div class="card"> |
71 <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-fa
ilure-card-buttons> | 71 <ct-failure-card-buttons group="{{ group }}" bug="{{ bug }}"></ct-fa
ilure-card-buttons> |
72 <div> | 72 <div> |
73 <template if="{{ group.bug }}"> | 73 <template if="{{ group.bug }}"> |
74 <div class="bugs"> | 74 <div class="bugs"> |
75 <span style="font-weight: bold">Bugs:</span> | 75 <span style="font-weight: bold">Bugs:</span> |
76 <a href="{{ group.bug }}">{{ group.bugLabel }}</a> | 76 <a href="{{ bugLink(group.bug) }}">{{ group.bugLabel }}</a> |
77 </div> | 77 </div> |
78 </template> | 78 </template> |
79 <template if="{{ group.data.category == 'step' }}"> | 79 <template if="{{ group.data.category == 'step' }}"> |
80 <ct-step-failure-card class='{{ { snoozed: group.isSnoozed } | t
okenList }}' group="{{ group.data }}" commitLog="{{ commitLog }}"></ct-step-fail
ure-card> | 80 <ct-step-failure-card class='{{ { snoozed: group.isSnoozed } | t
okenList }}' group="{{ group.data }}" commitLog="{{ commitLog }}"></ct-step-fail
ure-card> |
81 </template> | 81 </template> |
82 <template if="{{ group.data.category == 'master' }}"> | 82 <template if="{{ group.data.category == 'master' }}"> |
83 <ct-master-failure-card class='{{ { snoozed: group.isSnoozed } |
tokenList }}' group="{{ group.data }}"></ct-master-failure-card> | 83 <ct-master-failure-card class='{{ { snoozed: group.isSnoozed } |
tokenList }}' group="{{ group.data }}"></ct-master-failure-card> |
84 </template> | 84 </template> |
85 <template if="{{ group.data.category == 'builder' }}"> | 85 <template if="{{ group.data.category == 'builder' }}"> |
86 <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed }
| tokenList }}' group="{{ group.data }}"></ct-builder-failure-card> | 86 <ct-builder-failure-card class='{{ { snoozed: group.isSnoozed }
| tokenList }}' group="{{ group.data }}"></ct-builder-failure-card> |
87 </template> | 87 </template> |
88 </div> | 88 </div> |
89 </div> | 89 </div> |
90 </div> | 90 </div> |
91 </template> | 91 </template> |
92 </template> | 92 </template> |
93 </template> | 93 </template> |
| 94 <script> |
| 95 Polymer({ |
| 96 bugLink: function(bug) { |
| 97 return `https://crbug/${bug[0]}`; |
| 98 } |
| 99 }); |
| 100 </script> |
94 </polymer-element> | 101 </polymer-element> |
OLD | NEW |