Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: appengine/swarming/ui/res/imp/taskpage/task-page.html

Issue 2459693002: swarming: display named caches in task UI (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/swarming/ui/build/elements.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/build/elements.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698