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

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

Issue 2471653004: Include expected outputs in Polymer UI (Closed)
Patch Set: Remove useless function (review for PS2) 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 </tr> 245 </tr>
246 </template> 246 </template>
247 <tr> 247 <tr>
248 <td>Isolated Inputs</td> 248 <td>Isolated Inputs</td>
249 <td> 249 <td>
250 <a href$="[[_isolateLink(_request.properties.inputs_ref)]]"> 250 <a href$="[[_isolateLink(_request.properties.inputs_ref)]]">
251 [[_request.properties.inputs_ref.isolated]] 251 [[_request.properties.inputs_ref.isolated]]
252 </a> 252 </a>
253 </td> 253 </td>
254 </tr> 254 </tr>
255 <template is="dom-if" if="[[_request.properties.outputs.length]]">
256 <tr>
257 <td rowspan$="[[_rowspan(_request.properties.outputs)]]">Expec ted outputs</td>
258 </tr>
259 <template is="dom-repeat" items="{{_request.properties.outputs}} " as="output">
260 <tr>
261 <td>[[output]]</td>
262 </tr>
263 </template>
264 </template>
255 <template is="dom-if" if="[[_not(_request_detail)]]"> 265 <template is="dom-if" if="[[_not(_request_detail)]]">
256 <tr> 266 <tr>
257 <td>More Details</td> 267 <td>More Details</td>
258 <td> 268 <td>
259 <button on-click="_toggleDetails"> 269 <button on-click="_toggleDetails">
260 <iron-icon icon="icons:add-circle-outline"></iron-icon> 270 <iron-icon icon="icons:add-circle-outline"></iron-icon>
261 </button> 271 </button>
262 </td> 272 </td>
263 </tr> 273 </tr>
264 </template> 274 </template>
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 } 716 }
707 ); 717 );
708 }, 718 },
709 719
710 _rowspan: function(dims) { 720 _rowspan: function(dims) {
711 dims = dims || []; 721 dims = dims || [];
712 return dims.length + 1; 722 return dims.length + 1;
713 }, 723 },
714 724
715 _empty: function(array) { 725 _empty: function(array) {
716 return array.length == 0; 726 return !array || array.length == 0;
717 }, 727 },
718 728
719 _supportsMilo: function(request, showRaw) { 729 _supportsMilo: function(request, showRaw) {
720 return !showRaw && request && this._tag(request, "allow_milo"); 730 return !showRaw && request && this._tag(request, "allow_milo");
721 }, 731 },
722 732
723 _state: function(result) { 733 _state: function(result) {
724 if (!result) { 734 if (!result) {
725 return ""; 735 return "";
726 } 736 }
(...skipping 27 matching lines...) Expand all
754 _wasPickedUp: function(result) { 764 _wasPickedUp: function(result) {
755 return result && result.state !== this.PENDING && result.state !== this. CANCELED && result.state != this.EXPIRED; 765 return result && result.state !== this.PENDING && result.state !== this. CANCELED && result.state != this.EXPIRED;
756 }, 766 },
757 767
758 _wasNotPickedUp: function(result) { 768 _wasNotPickedUp: function(result) {
759 return result && !this._wasPickedUp(result); 769 return result && !this._wasPickedUp(result);
760 }, 770 },
761 }); 771 });
762 })(); 772 })();
763 </script> 773 </script>
764 </dom-module> 774 </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