| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 This in an HTML Import-able file that contains the definition | 6 This in an HTML Import-able file that contains the definition |
| 7 of the following elements: | 7 of the following elements: |
| 8 | 8 |
| 9 <task-page> | 9 <task-page> |
| 10 | 10 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 </button> | 301 </button> |
| 302 </td> | 302 </td> |
| 303 </tr> | 303 </tr> |
| 304 </template> | 304 </template> |
| 305 <template is="dom-if" if="[[_request_detail]]"> | 305 <template is="dom-if" if="[[_request_detail]]"> |
| 306 <tr> | 306 <tr> |
| 307 <td>Extra Args</td> | 307 <td>Extra Args</td> |
| 308 <td class="code">[[_extraArgs(_request)]]</td> | 308 <td class="code">[[_extraArgs(_request)]]</td> |
| 309 </tr> | 309 </tr> |
| 310 <tr> | 310 <tr> |
| 311 <td>Command</td> |
| 312 <td class="code">[[_command(_request)]]</td> |
| 313 </tr> |
| 314 <tr> |
| 311 <td rowspan$="[[_rowspan(_request.tags)]]">Tags</td> | 315 <td rowspan$="[[_rowspan(_request.tags)]]">Tags</td> |
| 312 </tr> | 316 </tr> |
| 313 <template is="dom-repeat" items="{{_request.tags}}" as="tag"> | 317 <template is="dom-repeat" items="{{_request.tags}}" as="tag"> |
| 314 <tr> | 318 <tr> |
| 315 <td>[[tag]]</td> | 319 <td>[[tag]]</td> |
| 316 </tr> | 320 </tr> |
| 317 </template> | 321 </template> |
| 318 | 322 |
| 319 <tr> | 323 <tr> |
| 320 <td>Execution timeout</td> | 324 <td>Execution timeout</td> |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 p.requested = p.package_name + ":" + p.version; | 624 p.requested = p.package_name + ":" + p.version; |
| 621 actual.forEach(function(c) { | 625 actual.forEach(function(c) { |
| 622 if (c.path === p.path) { | 626 if (c.path === p.path) { |
| 623 p.actual = c.package_name + ":" + c.version; | 627 p.actual = c.package_name + ":" + c.version; |
| 624 } | 628 } |
| 625 }); | 629 }); |
| 626 }); | 630 }); |
| 627 return packages; | 631 return packages; |
| 628 }, | 632 }, |
| 629 | 633 |
| 634 _command: function(request) { |
| 635 if (!request || !request.properties) { |
| 636 return ""; |
| 637 } |
| 638 var args = request.properties.command || []; |
| 639 return args.join(" "); |
| 640 }, |
| 641 |
| 630 _disambiguate: function(taskId, result) { | 642 _disambiguate: function(taskId, result) { |
| 631 if (!taskId.endsWith("0") || !result) { | 643 if (!taskId.endsWith("0") || !result) { |
| 632 return false; | 644 return false; |
| 633 } | 645 } |
| 634 return result.try_number > 1; | 646 return result.try_number > 1; |
| 635 }, | 647 }, |
| 636 | 648 |
| 637 _empty: function(array) { | 649 _empty: function(array) { |
| 638 return !array || array.length == 0; | 650 return !array || array.length == 0; |
| 639 }, | 651 }, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; | 820 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; |
| 809 }, | 821 }, |
| 810 | 822 |
| 811 _wasNotPickedUp: function(result) { | 823 _wasNotPickedUp: function(result) { |
| 812 return result && !this._wasPickedUp(result); | 824 return result && !this._wasPickedUp(result); |
| 813 }, | 825 }, |
| 814 }); | 826 }); |
| 815 })(); | 827 })(); |
| 816 </script> | 828 </script> |
| 817 </dom-module> | 829 </dom-module> |
| OLD | NEW |