| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 </tr> | 350 </tr> |
| 349 <template is="dom-repeat" items="[[_request.properties.caches]]"
as="cache"> | 351 <template is="dom-repeat" items="[[_request.properties.caches]]"
as="cache"> |
| 350 <tr> | 352 <tr> |
| 351 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span><
/td> | 353 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span><
/td> |
| 352 </tr> | 354 </tr> |
| 353 </template> | 355 </template> |
| 354 | 356 |
| 355 </template> | 357 </template> |
| 356 </table> | 358 </table> |
| 357 | 359 |
| 358 <div class="title">Task Execution</div> | 360 <div class="title" hidden$="[[_not(_task_exists)]]">Task Execution</
div> |
| 359 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> | 361 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> |
| 360 <table> | 362 <table hidden$="[[_not(_task_exists)]]"> |
| 361 <tr> | 363 <tr> |
| 362 <td>Bot assigned to task</td> | 364 <td>Bot assigned to task</td> |
| 363 <td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]
</td> | 365 <td><a href$="[[_botLink(_result.bot_id)]]">[[_result.bot_id]]
</td> |
| 364 </tr> | 366 </tr> |
| 365 <tr> | 367 <tr> |
| 366 <td rowspan$="[[_rowspan(_result.bot_dimensions)]]"> | 368 <td rowspan$="[[_rowspan(_result.bot_dimensions)]]"> |
| 367 <a>Bot Dimensions</a> | 369 <a>Bot Dimensions</a> |
| 368 </td> | 370 </td> |
| 369 </tr> | 371 </tr> |
| 370 <template is="dom-repeat" items="[[_result.bot_dimensions]]" as=
"dimension"> | 372 <template is="dom-repeat" items="[[_result.bot_dimensions]]" as=
"dimension"> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 </tr> | 430 </tr> |
| 429 <tr> | 431 <tr> |
| 430 <td>Initial bot cache</td> | 432 <td>Initial bot cache</td> |
| 431 <td>[[_result.performance_stats.isolated_download.initial_numb
er_items]] items; | 433 <td>[[_result.performance_stats.isolated_download.initial_numb
er_items]] items; |
| 432 [[_bytes(_result.performance_stats.isolated_download.initial_s
ize)]]</td> | 434 [[_bytes(_result.performance_stats.isolated_download.initial_s
ize)]]</td> |
| 433 </tr> | 435 </tr> |
| 434 </table> | 436 </table> |
| 435 </template> | 437 </template> |
| 436 </div> | 438 </div> |
| 437 | 439 |
| 438 <div class="flex right"> | 440 <div class="flex right" hidden$="[[_not(_task_exists)]]"> |
| 439 <div class="horizontal layout"> | 441 <div class="horizontal layout"> |
| 440 <div class="tabs"> | 442 <div class="tabs"> |
| 441 <paper-tabs selected="{{_show_raw}}" no-bar> | 443 <paper-tabs selected="{{_show_raw}}" no-bar> |
| 442 <paper-tab disabled$="[[_noMilo(_request)]]">Milo Output</pape
r-tab> | 444 <paper-tab disabled$="[[_noMilo(_request)]]">Milo Output</pape
r-tab> |
| 443 <paper-tab>Raw Output</paper-tab> | 445 <paper-tab>Raw Output</paper-tab> |
| 444 </paper-tabs> | 446 </paper-tabs> |
| 445 </div> | 447 </div> |
| 446 | 448 |
| 447 <paper-input | 449 <paper-input |
| 448 class="refresh_input" | 450 class="refresh_input" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; | 767 return result && result.state !== this.PENDING && result.state !== this.
CANCELED && result.state != this.EXPIRED; |
| 766 }, | 768 }, |
| 767 | 769 |
| 768 _wasNotPickedUp: function(result) { | 770 _wasNotPickedUp: function(result) { |
| 769 return result && !this._wasPickedUp(result); | 771 return result && !this._wasPickedUp(result); |
| 770 }, | 772 }, |
| 771 }); | 773 }); |
| 772 })(); | 774 })(); |
| 773 </script> | 775 </script> |
| 774 </dom-module> | 776 </dom-module> |
| OLD | NEW |