| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 <tr> | 325 <tr> |
| 326 <td>[[cipd.path]]/</td> | 326 <td>[[cipd.path]]/</td> |
| 327 </tr> | 327 </tr> |
| 328 <tr> | 328 <tr> |
| 329 <td><b>Requested:</b>[[cipd.requested]]</td> | 329 <td><b>Requested:</b>[[cipd.requested]]</td> |
| 330 </tr> | 330 </tr> |
| 331 <tr hidden$="[[_wasNotPickedUp(_result)]]"> | 331 <tr hidden$="[[_wasNotPickedUp(_result)]]"> |
| 332 <td><b>Actual:</b>[[cipd.actual]]</td> | 332 <td><b>Actual:</b>[[cipd.actual]]</td> |
| 333 </tr> | 333 </tr> |
| 334 </template> | 334 </template> |
| 335 |
| 336 <tr hidden$="[[_empty(_request.properties.caches)]]"> |
| 337 <td rowspan$="[[_rowspan(_request.properties.caches)]]">Named
caches</td> |
| 338 </tr> |
| 339 <template is="dom-repeat" items="[[_request.properties.caches]]"
as="cache"> |
| 340 <tr> |
| 341 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span><
/td> |
| 342 </tr> |
| 343 </template> |
| 344 |
| 335 </template> | 345 </template> |
| 336 </table> | 346 </table> |
| 337 | 347 |
| 338 <div class="title">Task Execution</div> | 348 <div class="title">Task Execution</div> |
| 339 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> | 349 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> |
| 340 <table> | 350 <table> |
| 341 <tr> | 351 <tr> |
| 342 <td>Bot assigned to task</td> | 352 <td>Bot assigned to task</td> |
| 343 <td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]
</td> | 353 <td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]
</td> |
| 344 </tr> | 354 </tr> |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 console.log("Task could not be retried", e); | 705 console.log("Task could not be retried", e); |
| 696 } | 706 } |
| 697 ); | 707 ); |
| 698 }, | 708 }, |
| 699 | 709 |
| 700 _rowspan: function(dims) { | 710 _rowspan: function(dims) { |
| 701 dims = dims || []; | 711 dims = dims || []; |
| 702 return dims.length + 1; | 712 return dims.length + 1; |
| 703 }, | 713 }, |
| 704 | 714 |
| 715 _empty: function(array) { |
| 716 return array.length == 0; |
| 717 }, |
| 718 |
| 705 _supportsMilo: function(request, showRaw) { | 719 _supportsMilo: function(request, showRaw) { |
| 706 return !showRaw && request && this._tag(request, "allow_milo"); | 720 return !showRaw && request && this._tag(request, "allow_milo"); |
| 707 }, | 721 }, |
| 708 | 722 |
| 709 _state: function(result) { | 723 _state: function(result) { |
| 710 if (!result) { | 724 if (!result) { |
| 711 return ""; | 725 return ""; |
| 712 } | 726 } |
| 713 if (result.state === this.COMPLETED) { | 727 if (result.state === this.COMPLETED) { |
| 714 if (result.failure) { | 728 if (result.failure) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 741 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; | 755 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; |
| 742 }, | 756 }, |
| 743 | 757 |
| 744 _wasNotPickedUp: function(result) { | 758 _wasNotPickedUp: function(result) { |
| 745 return result && !this._wasPickedUp(result); | 759 return result && !this._wasPickedUp(result); |
| 746 }, | 760 }, |
| 747 }); | 761 }); |
| 748 })(); | 762 })(); |
| 749 </script> | 763 </script> |
| 750 </dom-module> | 764 </dom-module> |
| OLD | NEW |