| 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 <link href="../bower_components/core-icons/core-icons.html" rel="import"> | 6 <link href="../bower_components/core-icons/core-icons.html" rel="import"> |
| 7 <link href="../bower_components/paper-item/paper-item.html" rel="import"> | 7 <link href="../bower_components/paper-item/paper-item.html" rel="import"> |
| 8 <link href="../model/ct-builder-revisions.html" rel="import"> | 8 <link href="../model/ct-builder-revisions.html" rel="import"> |
| 9 <link href="ct-popup-menu.html" rel="import"> | 9 <link href="ct-popup-menu.html" rel="import"> |
| 10 | 10 |
| 11 <polymer-element name="ct-revision-details" attributes="builderLatestRevisions r
evisionLog tree"> | 11 <polymer-element name="ct-revision-details" attributes="builderLatestRevisions r
evisionLog tree"> |
| 12 <template> | 12 <template> |
| 13 <style> | 13 <style> |
| 14 :host { | |
| 15 padding-left: 2em; | |
| 16 } | |
| 17 ct-popup-menu > div { | 14 ct-popup-menu > div { |
| 18 display: flex; | 15 display: flex; |
| 19 justify-content: space-between; | 16 justify-content: space-between; |
| 20 } | 17 } |
| 21 .menuRevision { | 18 .menuRevision { |
| 22 padding-left: 2em; | 19 padding-left: 2em; |
| 23 } | 20 } |
| 24 </style> | 21 </style> |
| 25 <!-- FIXME: Stop special casing the blink tree. --> | 22 <!-- FIXME: Stop special casing the blink tree. --> |
| 26 <template if="{{ _sortedBuilders.length && tree == 'blink' }}"> | 23 <template if="{{ _sortedBuilders.length && tree == 'blink' }}"> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 // Get the list of builders sorted with the most out-of-date one first. | 48 // Get the list of builders sorted with the most out-of-date one first. |
| 52 var sortedBuilders = Object.keys(this.builderLatestRevisions); | 49 var sortedBuilders = Object.keys(this.builderLatestRevisions); |
| 53 sortedBuilders.sort(function (a, b) { return this.builderLatestRevisions
[a].revision - this.builderLatestRevisions[b].revision;}.bind(this)); | 50 sortedBuilders.sort(function (a, b) { return this.builderLatestRevisions
[a].revision - this.builderLatestRevisions[b].revision;}.bind(this)); |
| 54 | 51 |
| 55 this._sortedBuilders = sortedBuilders; | 52 this._sortedBuilders = sortedBuilders; |
| 56 this._fullyProcessedRevision = this.builderLatestRevisions[sortedBuilder
s[0]]; | 53 this._fullyProcessedRevision = this.builderLatestRevisions[sortedBuilder
s[0]]; |
| 57 }, | 54 }, |
| 58 }); | 55 }); |
| 59 </script> | 56 </script> |
| 60 </polymer-element> | 57 </polymer-element> |
| OLD | NEW |