| 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="../model/ct-builder.html"> | 7 <link rel="import" href="../model/ct-builder.html"> |
| 8 <link rel="import" href="../model/ct-builder-list.html"> | 8 <link rel="import" href="../model/ct-builder-list.html"> |
| 9 <link rel="import" href="ct-builder.html"> | 9 <link rel="import" href="ct-builder.html"> |
| 10 | 10 |
| 11 <polymer-element name="ct-builder-grid" attributes="failures"> | 11 <polymer-element name="ct-builder-grid" attributes="builderList"> |
| 12 <template> | 12 <template> |
| 13 <style> | 13 <style> |
| 14 ct-builder { | 14 ct-builder { |
| 15 display: block; | 15 display: block; |
| 16 } | 16 } |
| 17 </style> | 17 </style> |
| 18 <template repeat="{{ builder in _builderList.builders }}"> | 18 <template repeat="{{ builder in builderList.builders }}"> |
| 19 <ct-builder builder="{{ builder }}"></ct-builder> | 19 <ct-builder builder="{{ builder }}"></ct-builder> |
| 20 </template> | 20 </template> |
| 21 </template> | 21 </template> |
| 22 <script> | 22 <script> |
| 23 Polymer({ | 23 Polymer({ |
| 24 failures: null, | 24 builderList: null, |
| 25 _builderList: null, | |
| 26 | |
| 27 failuresChanged: function() { | |
| 28 this._builderList = new CTBuilderList(this.failures); | |
| 29 }, | |
| 30 }); | 25 }); |
| 31 </script> | 26 </script> |
| 32 </polymer-element> | 27 </polymer-element> |
| OLD | NEW |