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

Side by Side Diff: appengine/swarming/ui/res/imp/tasklist/task-list.html

Issue 2513613002: Add informational messages to clarify what can be filtered on. (Closed)
Patch Set: Tweak spacing 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/res/imp/tasklist/task-filters.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-list> 9 <task-list>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 tasks="[[_items]]" 76 tasks="[[_items]]"
77 busy="{{_busy1)}}" 77 busy="{{_busy1)}}"
78 primary_map="{{_primary_map}}" 78 primary_map="{{_primary_map}}"
79 primary_arr="{{_primary_arr}}"> 79 primary_arr="{{_primary_arr}}">
80 </task-list-data> 80 </task-list-data>
81 81
82 <div class="horizontal layout"> 82 <div class="horizontal layout">
83 <task-filters 83 <task-filters
84 primary_map="[[_primary_map]]" 84 primary_map="[[_primary_map]]"
85 primary_arr="[[_primary_arr]]" 85 primary_arr="[[_primary_arr]]"
86 special_columns="[[_specialColumns]]"
87
86 columns="{{_columns}}" 88 columns="{{_columns}}"
87 query_params="{{_query_params}}" 89 query_params="{{_query_params}}"
88 filter="{{_filter}}"> 90 filter="{{_filter}}">
89 </task-filters> 91 </task-filters>
90 </div> 92 </div>
91 93
92 <table class="task-list"> 94 <table class="task-list">
93 <thead on-sort_change="_sortChange"> 95 <thead on-sort_change="_sortChange">
94 <!-- To allow for dynamic columns without having a lot of copy-pasted 96 <!-- To allow for dynamic columns without having a lot of copy-pasted
95 code, we break columns up into "special" and "plain" columns. Special 97 code, we break columns up into "special" and "plain" columns. Special
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 var tryNum = this._attribute(task, "try_number", "-1")[0]; 284 var tryNum = this._attribute(task, "try_number", "-1")[0];
283 if (tryNum === "0") { 285 if (tryNum === "0") {
284 return "COMPLETED (DEDUPED)"; 286 return "COMPLETED (DEDUPED)";
285 } 287 }
286 return "COMPLETED (SUCCESS)"; 288 return "COMPLETED (SUCCESS)";
287 } 289 }
288 return state; 290 return state;
289 }, 291 },
290 }; 292 };
291 var headerMap = { 293 var headerMap = {
294 "abandoned_ts": "Abandoned On",
295 "completed_ts": "Completed On",
296 "created_ts": "Created On",
297 "duration": "Duration",
298 "modified_ts": "Last Modified",
299 "started_ts": "Started Working On",
292 "user": "Requesting User", 300 "user": "Requesting User",
293 }; 301 };
294 302
295 // Given a time attribute like "abandoned_ts", sortableTime returns a functi on 303 // Given a time attribute like "abandoned_ts", sortableTime returns a functi on
296 // that compares the tasks based on the attribute. This is used for sorting . 304 // that compares the tasks based on the attribute. This is used for sorting .
297 function sortableTime(attr) { 305 function sortableTime(attr) {
298 // sort times based on the string they come with, formatted like 306 // sort times based on the string they come with, formatted like
299 // "2016-08-16T13:12:40.606300" which sorts correctly. Locale time 307 // "2016-08-16T13:12:40.606300" which sorts correctly. Locale time
300 // (used in the columns), does not. 308 // (used in the columns), does not.
301 return function(dir, a, b) { 309 return function(dir, a, b) {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 return task.tagMap[col]; 443 return task.tagMap[col];
436 }, 444 },
437 445
438 _taskClass: function(task) { 446 _taskClass: function(task) {
439 return this.stateClass(this._column("state", task)); 447 return this.stateClass(this._column("state", task));
440 } 448 }
441 }); 449 });
442 })(); 450 })();
443 </script> 451 </script>
444 </dom-module> 452 </dom-module>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/res/imp/tasklist/task-filters.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698