Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 <template> | 46 <template> |
| 47 <style include="iron-flex iron-flex-alignment swarming-app-style single-page -style task-style"> | 47 <style include="iron-flex iron-flex-alignment swarming-app-style single-page -style task-style"> |
| 48 .milo { | 48 .milo { |
| 49 width: calc(100% - 11px); | 49 width: calc(100% - 11px); |
| 50 /** We don't control the milo site and it's on a different domain than | 50 /** We don't control the milo site and it's on a different domain than |
| 51 us, so there's no good way to avoid scrolling other than tell the iframe | 51 us, so there's no good way to avoid scrolling other than tell the iframe |
| 52 it is really tall.*/ | 52 it is really tall.*/ |
| 53 height: 2000px; | 53 height: 2000px; |
| 54 } | 54 } |
| 55 | 55 |
| 56 .left { | 56 .right { |
| 57 min-width: 550px; | 57 margin-top: 8px; |
| 58 } | 58 } |
| 59 .right { | 59 |
| 60 min-width: 500px; | 60 .break-all { |
| 61 margin-top: 8px; | 61 word-break: break-all; |
| 62 } | 62 } |
| 63 | 63 |
| 64 .expand { | 64 .expand { |
| 65 min-width: 3em; | 65 min-width: 3em; |
| 66 vertical-align: middle; | 66 vertical-align: middle; |
| 67 padding: .5em; | 67 padding: .5em; |
| 68 } | 68 } |
| 69 | 69 |
| 70 .code { | 70 .code { |
| 71 font-family: monospace; | 71 font-family: monospace; |
| 72 } | 72 } |
| 73 | 73 |
| 74 .stdout { | 74 .stdout { |
| 75 white-space: pre-line; | 75 white-space: pre-line; |
| 76 padding: 2px; | 76 padding: 2px; |
| 77 } | 77 } |
| 78 | 78 |
| 79 .refresh_input { | 79 .refresh_input { |
| 80 padding: 0 5px; | 80 padding: 0 5px; |
| 81 } | 81 } |
| 82 | 82 |
| 83 .reproduce { | 83 .reproduce { |
| 84 margin-left: 5px; | 84 margin-left: 5px; |
| 85 } | 85 } |
| 86 | 86 |
| 87 .tabbed { | 87 .tabbed { |
| 88 border: 3px solid #1F78B4; | 88 border: 3px solid #1F78B4; |
| 89 margin-left: 5px; | 89 margin-left: 5px; |
| 90 min-height: 80vh; | 90 min-height: 80vh; |
| 91 min-width: 550px; | |
| 92 } | |
| 93 | |
| 94 .task-info { | |
| 95 min-width: 500px; | |
| 91 } | 96 } |
| 92 </style> | 97 </style> |
| 93 | 98 |
| 94 <url-param name="id" | 99 <url-param name="id" |
| 95 value="{{task_id}}"> | 100 value="{{task_id}}"> |
| 96 </url-param> | 101 </url-param> |
| 97 <url-param name="try_detail" | 102 <url-param name="try_detail" |
| 98 value="{{_try_detail}}"> | 103 value="{{_try_detail}}"> |
| 99 </url-param> | 104 </url-param> |
| 100 <url-param name="request_detail" | 105 <url-param name="request_detail" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 <template is="dom-if" if="[[_disambiguate(task_id,_result)]]"> | 157 <template is="dom-if" if="[[_disambiguate(task_id,_result)]]"> |
| 153 <h2>Displaying a summary for a task with multiple tries</h2> | 158 <h2>Displaying a summary for a task with multiple tries</h2> |
| 154 <task-disambiguation | 159 <task-disambiguation |
| 155 busy="{{busy2}}" | 160 busy="{{busy2}}" |
| 156 auth_headers="[[_auth_headers]]" | 161 auth_headers="[[_auth_headers]]" |
| 157 task_id="[[task_id]]" | 162 task_id="[[task_id]]" |
| 158 summary_result="[[_result]]"> | 163 summary_result="[[_result]]"> |
| 159 </task-disambiguation> | 164 </task-disambiguation> |
| 160 </template> | 165 </template> |
| 161 | 166 |
| 162 <table hidden$="[[_not(_task_exists)]]"> | 167 <table class="task-info" hidden$="[[_not(_task_exists)]]"> |
| 163 <tr> | 168 <tr> |
| 164 <td>Name</td> | 169 <td>Name</td> |
| 165 <td>[[_request.name]]</td> | 170 <td>[[_request.name]]</td> |
| 166 </tr> | 171 </tr> |
| 167 <tr> | 172 <tr> |
| 168 <td>State</td> | 173 <td>State</td> |
| 169 <td class$="[[_stateClass(_result)]]">[[state(_result)]]</td> | 174 <td class$="[[_stateClass(_result)]]">[[state(_result)]]</td> |
| 170 </tr> | 175 </tr> |
| 171 <tr> | 176 <tr> |
| 172 <td>Created</td> | 177 <td>Created</td> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 298 <td> | 303 <td> |
| 299 <button on-click="_toggleDetails"> | 304 <button on-click="_toggleDetails"> |
| 300 <iron-icon icon="icons:remove-circle-outline"></iron-icon> | 305 <iron-icon icon="icons:remove-circle-outline"></iron-icon> |
| 301 </button> | 306 </button> |
| 302 </td> | 307 </td> |
| 303 </tr> | 308 </tr> |
| 304 </template> | 309 </template> |
| 305 <template is="dom-if" if="[[_request_detail]]"> | 310 <template is="dom-if" if="[[_request_detail]]"> |
| 306 <tr> | 311 <tr> |
| 307 <td>Extra Args</td> | 312 <td>Extra Args</td> |
| 308 <td class="code">[[_extraArgs(_request)]]</td> | 313 <td class="code break-all">[[_extraArgs(_request)]]</td> |
| 309 </tr> | 314 </tr> |
| 310 <tr> | 315 <tr> |
| 311 <td>Command</td> | 316 <td>Command</td> |
| 312 <td class="code">[[_command(_request)]]</td> | 317 <td class="code break-all">[[_command(_request)]]</td> |
| 313 </tr> | 318 </tr> |
| 314 <tr> | 319 <tr> |
| 315 <td>Idempotent</td> | 320 <td>Idempotent</td> |
| 316 <td>[[_request.properties.idempotent]]</td> | 321 <td>[[_request.properties.idempotent]]</td> |
| 317 </tr> | 322 </tr> |
| 318 <tr> | 323 <tr> |
| 319 <td rowspan$="[[_rowspan(_request.tags)]]">Tags</td> | 324 <td rowspan$="[[_rowspan(_request.tags)]]">Tags</td> |
| 320 </tr> | 325 </tr> |
| 321 <template is="dom-repeat" items="{{_request.tags}}" as="tag"> | 326 <template is="dom-repeat" items="{{_request.tags}}" as="tag"> |
| 322 <tr> | 327 <tr> |
| 323 <td>[[tag]]</td> | 328 <td class="break-all">[[tag]]</td> |
| 324 </tr> | 329 </tr> |
| 325 </template> | 330 </template> |
| 326 | 331 |
| 327 <tr> | 332 <tr> |
| 328 <td>Execution timeout</td> | 333 <td>Execution timeout</td> |
| 329 <td>[[_humanDuration(_request.properties.execution_timeout_sec s)]]</td> | 334 <td>[[_humanDuration(_request.properties.execution_timeout_sec s)]]</td> |
| 330 </tr> | 335 </tr> |
| 331 <tr> | 336 <tr> |
| 332 <td>I/O timeout</td> | 337 <td>I/O timeout</td> |
| 333 <td>[[_humanDuration(_request.properties.io_timeout_secs)]]</t d> | 338 <td>[[_humanDuration(_request.properties.io_timeout_secs)]]</t d> |
| 334 </tr> | 339 </tr> |
| 335 <tr> | 340 <tr> |
| 336 <td>Grace period</td> | 341 <td>Grace period</td> |
| 337 <td>[[_humanDuration(_request.properties.grace_period_secs)]]< /td> | 342 <td>[[_humanDuration(_request.properties.grace_period_secs)]]< /td> |
| 338 </tr> | 343 </tr> |
| 339 | 344 |
| 340 <tr> | 345 <tr> |
| 341 <td>CIPD server</td> | 346 <td>CIPD server</td> |
| 342 <td> | 347 <td> |
| 343 <a href$="[[_request.properties.cipd_input.server]]"> | 348 <a href$="[[_request.properties.cipd_input.server]]"> |
| 344 [[_request.properties.cipd_input.server]] | 349 [[_request.properties.cipd_input.server]] |
| 345 </a> | 350 </a> |
| 346 </td> | 351 </td> |
| 347 </tr> | 352 </tr> |
| 348 <tr> | 353 <tr> |
| 349 <td>CIPD version</td> | 354 <td>CIPD version</td> |
| 350 <td>[[_request.properties.cipd_input.client_package.version]]< /td> | 355 <td class="break-all">[[_request.properties.cipd_input.client_ package.version]]</td> |
| 351 </tr> | 356 </tr> |
| 352 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> | 357 <template is="dom-if" if="[[_wasPickedUp(_result)]]"> |
| 353 <tr> | 358 <tr> |
| 354 <td>CIPD package name</td> | 359 <td>CIPD package name</td> |
| 355 <td>[[_result.cipd_pins.client_package.package_name]]</td> | 360 <td>[[_result.cipd_pins.client_package.package_name]]</td> |
| 356 </tr> | 361 </tr> |
| 357 </template> | 362 </template> |
| 358 | 363 |
| 359 <tr hidden$="[[_not(_request.properties.cipd_input)]]"> | 364 <tr hidden$="[[_not(_request.properties.cipd_input)]]"> |
| 360 <td rowspan$="[[_cipdRowspan(_request,_result)]]">CIPD package s</td> | 365 <td rowspan$="[[_cipdRowspan(_request,_result)]]">CIPD package s</td> |
| 361 </tr> | 366 </tr> |
| 362 <template is="dom-repeat" items="[[_cipdPackages(_request,_resul t)]]" as="cipd"> | 367 <template is="dom-repeat" items="[[_cipdPackages(_request,_resul t)]]" as="cipd"> |
| 363 <tr> | 368 <tr> |
| 364 <td>[[cipd.path]]/</td> | 369 <td>[[cipd.path]]/</td> |
| 365 </tr> | 370 </tr> |
| 366 <tr> | 371 <tr> |
| 367 <td><b>Requested:</b>[[cipd.requested]]</td> | 372 <td class="break-all"> |
| 373 <b style="user-select:none"> Reques ted: </b>[[cipd.requested]] | |
|
stephana
2016/12/05 18:25:50
It seem user select is experimental
https://develo
kjlubick
2016/12/05 18:55:28
I am aware user-select is experimental. It seems
| |
| 374 </td> | |
| 368 </tr> | 375 </tr> |
| 369 <tr hidden$="[[!_hasActualCIPDPackages(_result)]]"> | 376 <tr hidden$="[[!_hasActualCIPDPackages(_result)]]"> |
| 370 <td><b>Actual:</b>[[cipd.actual]]</td> | 377 <td class="break-all"> |
| 378 <b style="user-select:none"> Actual : </b>[[cipd.actual]] | |
| 379 </td> | |
| 371 </tr> | 380 </tr> |
| 372 </template> | 381 </template> |
| 373 | 382 |
| 374 <tr hidden$="[[_empty(_request.properties.caches)]]"> | 383 <tr hidden$="[[_empty(_request.properties.caches)]]"> |
| 375 <td rowspan$="[[_rowspan(_request.properties.caches)]]">Named caches</td> | 384 <td rowspan$="[[_rowspan(_request.properties.caches)]]">Named caches</td> |
| 376 </tr> | 385 </tr> |
| 377 <template is="dom-repeat" items="[[_request.properties.caches]]" as="cache"> | 386 <template is="dom-repeat" items="[[_request.properties.caches]]" as="cache"> |
| 378 <tr> | 387 <tr> |
| 379 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span>< /td> | 388 <td><span>[[cache.name]]</span>:<span>[[cache.path]]</span>< /td> |
| 380 </tr> | 389 </tr> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 501 </paper-input> | 510 </paper-input> |
| 502 </div> | 511 </div> |
| 503 | 512 |
| 504 <template is="dom-if" if="[[_supportsMilo(_request,_show_raw)]]"> | 513 <template is="dom-if" if="[[_supportsMilo(_request,_show_raw)]]"> |
| 505 <div class="milo tabbed" hidden$="[[_isSummaryLink(task_id)]]"> | 514 <div class="milo tabbed" hidden$="[[_isSummaryLink(task_id)]]"> |
| 506 Milo results are only generated for task summaires, that is, tas ks whose ids end in 0. Tasks ending in 1 or 2 represent possible retries of tas ks. See <a href="//goo.gl/LE4rwV">the docs</a> for more. | 515 Milo results are only generated for task summaires, that is, tas ks whose ids end in 0. Tasks ending in 1 or 2 represent possible retries of tas ks. See <a href="//goo.gl/LE4rwV">the docs</a> for more. |
| 507 </div> | 516 </div> |
| 508 <iframe id="miloFrame" class="milo tabbed" src$="[[_getDisplayServ erLink(_server_details.display_server_url_template,task_id)]]"></iframe> | 517 <iframe id="miloFrame" class="milo tabbed" src$="[[_getDisplayServ erLink(_server_details.display_server_url_template,task_id)]]"></iframe> |
| 509 </template> | 518 </template> |
| 510 <template is="dom-if" if="[[_show_raw]]"> | 519 <template is="dom-if" if="[[_show_raw]]"> |
| 511 <div class="code stdout tabbed">[[_rawOutput(_stdout,_result)]]</d iv> | 520 <div class="code stdout tabbed break-all">[[_rawOutput(_stdout,_re sult)]]</div> |
| 512 </template> | 521 </template> |
| 513 </div> | 522 </div> |
| 514 </div> | 523 </div> |
| 515 </div> | 524 </div> |
| 516 </swarming-app> | 525 </swarming-app> |
| 517 | 526 |
| 518 <paper-dialog id="prompt" modal on-iron-overlay-closed="_promptClosed"> | 527 <paper-dialog id="prompt" modal on-iron-overlay-closed="_promptClosed"> |
| 519 <h2>Are you sure?</h2> | 528 <h2>Are you sure?</h2> |
| 520 <div>Are you sure you want to [[_dialog_prompt]]?</div> | 529 <div>Are you sure you want to [[_dialog_prompt]]?</div> |
| 521 <div class="buttons"> | 530 <div class="buttons"> |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 833 return result && result.state !== this.PENDING && result.state !== this. CANCELED && result.state != this.EXPIRED; | 842 return result && result.state !== this.PENDING && result.state !== this. CANCELED && result.state != this.EXPIRED; |
| 834 }, | 843 }, |
| 835 | 844 |
| 836 _wasNotPickedUp: function(result) { | 845 _wasNotPickedUp: function(result) { |
| 837 return result && !this._wasPickedUp(result); | 846 return result && !this._wasPickedUp(result); |
| 838 }, | 847 }, |
| 839 }); | 848 }); |
| 840 })(); | 849 })(); |
| 841 </script> | 850 </script> |
| 842 </dom-module> | 851 </dom-module> |
| OLD | NEW |