| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 <div hidden$="[[_not(_signed_in)]]"> | 117 <div hidden$="[[_not(_signed_in)]]"> |
| 118 | 118 |
| 119 <task-page-data | 119 <task-page-data |
| 120 id="data" | 120 id="data" |
| 121 auth_headers="[[_auth_headers]]" | 121 auth_headers="[[_auth_headers]]" |
| 122 task_id="[[task_id]]" | 122 task_id="[[task_id]]" |
| 123 | 123 |
| 124 busy="{{_busy}}" | 124 busy="{{_busy}}" |
| 125 request="{{_request}}" | 125 request="{{_request}}" |
| 126 result="{{_result}}" | 126 result="{{_result}}" |
| 127 stdout="{{_stdout}}"> | 127 stdout="{{_stdout}}" |
| 128 task_exists="{{_task_exists}}"> |
| 128 </task-page-data> | 129 </task-page-data> |
| 129 | 130 |
| 130 <div class="horizontal layout wrap"> | 131 <div class="horizontal layout wrap"> |
| 131 <div class="left flex"> | 132 <div class="left flex"> |
| 132 <div class="horizontal layout"> | 133 <div class="horizontal layout"> |
| 133 <paper-input class="id_input" label="Task id" value="{{task_id}}">
</paper-input> | 134 <paper-input class="id_input" label="Task id" value="{{task_id}}">
</paper-input> |
| 134 <button on-click="_refresh"> | 135 <button on-click="_refresh"> |
| 135 <iron-icon class="refresh" icon="icons:refresh"></iron-icon> | 136 <iron-icon class="refresh" icon="icons:refresh"></iron-icon> |
| 136 </button> | 137 </button> |
| 137 <button on-click="_promptRetry">Retry</button> | 138 <button on-click="_promptRetry">Retry</button> |
| 138 <template is="dom-if" if="[[_canCancelTask(_result,_permissions)]]
"> | 139 <template is="dom-if" if="[[_canCancelTask(_result,_permissions)]]
"> |
| 139 <button on-click="_promptCancel">Cancel</button> | 140 <button on-click="_promptCancel">Cancel</button> |
| 140 </template> | 141 </template> |
| 141 </div> | 142 </div> |
| 142 <table> | 143 <h2 hidden$="[[_task_exists]]">Task not found.</h2> |
| 144 <table hidden$="[[_not(_task_exists)]]"> |
| 143 <tr> | 145 <tr> |
| 144 <td>Name</td> | 146 <td>Name</td> |
| 145 <td>[[_request.name]]</td> | 147 <td>[[_request.name]]</td> |
| 146 </tr> | 148 </tr> |
| 147 <tr> | 149 <tr> |
| 148 <td>State</td> | 150 <td>State</td> |
| 149 <td class$="[[_stateClass(_result)]]">[[_state(_result)]]</td> | 151 <td class$="[[_stateClass(_result)]]">[[_state(_result)]]</td> |
| 150 </tr> | 152 </tr> |
| 151 <tr> | 153 <tr> |
| 152 <td>Created</td> | 154 <td>Created</td> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 </tr> | 340 </tr> |
| 339 <template is="dom-repeat" items="[[_request.properties.caches]]"
as="cache"> | 341 <template is="dom-repeat" items="[[_request.properties.caches]]"
as="cache"> |
| 340 <tr> | 342 <tr> |
| 341 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span><
/td> | 343 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span><
/td> |
| 342 </tr> | 344 </tr> |
| 343 </template> | 345 </template> |
| 344 | 346 |
| 345 </template> | 347 </template> |
| 346 </table> | 348 </table> |
| 347 | 349 |
| 348 <div class="title">Task Execution</div> | 350 <div class="title" hidden$="[[_not(_task_exists)]]">Task Execution</
div> |
| 349 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> | 351 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> |
| 350 <table> | 352 <table hidden$="[[_not(_task_exists)]]"> |
| 351 <tr> | 353 <tr> |
| 352 <td>Bot assigned to task</td> | 354 <td>Bot assigned to task</td> |
| 353 <td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]
</td> | 355 <td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]
</td> |
| 354 </tr> | 356 </tr> |
| 355 <tr> | 357 <tr> |
| 356 <td rowspan$="[[_rowspan(_result.bot_dimensions)]]"> | 358 <td rowspan$="[[_rowspan(_result.bot_dimensions)]]"> |
| 357 <a>Bot Dimensions</a> | 359 <a>Bot Dimensions</a> |
| 358 </td> | 360 </td> |
| 359 </tr> | 361 </tr> |
| 360 <template is="dom-repeat" items="[[_result.bot_dimensions]]" as=
"dimension"> | 362 <template is="dom-repeat" items="[[_result.bot_dimensions]]" as=
"dimension"> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 </tr> | 420 </tr> |
| 419 <tr> | 421 <tr> |
| 420 <td>Initial bot cache</td> | 422 <td>Initial bot cache</td> |
| 421 <td>[[_result.performance_stats.isolated_download.initial_numb
er_items]] items; | 423 <td>[[_result.performance_stats.isolated_download.initial_numb
er_items]] items; |
| 422 [[_bytes(_result.performance_stats.isolated_download.initial_s
ize)]]</td> | 424 [[_bytes(_result.performance_stats.isolated_download.initial_s
ize)]]</td> |
| 423 </tr> | 425 </tr> |
| 424 </table> | 426 </table> |
| 425 </template> | 427 </template> |
| 426 </div> | 428 </div> |
| 427 | 429 |
| 428 <div class="flex right"> | 430 <div class="flex right" hidden$="[[_not(_task_exists)]]"> |
| 429 <div class="horizontal layout"> | 431 <div class="horizontal layout"> |
| 430 <div class="tabs"> | 432 <div class="tabs"> |
| 431 <paper-tabs selected="{{_show_raw}}" no-bar> | 433 <paper-tabs selected="{{_show_raw}}" no-bar> |
| 432 <paper-tab disabled$="[[_noMilo(_request)]]">Milo Output</pape
r-tab> | 434 <paper-tab disabled$="[[_noMilo(_request)]]">Milo Output</pape
r-tab> |
| 433 <paper-tab>Raw Output</paper-tab> | 435 <paper-tab>Raw Output</paper-tab> |
| 434 </paper-tabs> | 436 </paper-tabs> |
| 435 </div> | 437 </div> |
| 436 | 438 |
| 437 <paper-input | 439 <paper-input |
| 438 class="refresh_input" | 440 class="refresh_input" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; | 757 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; |
| 756 }, | 758 }, |
| 757 | 759 |
| 758 _wasNotPickedUp: function(result) { | 760 _wasNotPickedUp: function(result) { |
| 759 return result && !this._wasPickedUp(result); | 761 return result && !this._wasPickedUp(result); |
| 760 }, | 762 }, |
| 761 }); | 763 }); |
| 762 })(); | 764 })(); |
| 763 </script> | 765 </script> |
| 764 </dom-module> | 766 </dom-module> |
| OLD | NEW |