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

Side by Side Diff: appengine/swarming/elements/res/imp/botlist/bot-list.html

Issue 2359243004: Minor improvements of task list (Closed) Base URL: git@github.com:luci/luci-py@task-list
Patch Set: fix-merge Created 4 years, 2 months 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
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 <bot-list> 9 <bot-list>
10 10
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 (function(){ 216 (function(){
217 var UNKNOWN = "unknown"; 217 var UNKNOWN = "unknown";
218 // see dynamic-table for more information on specialColumns, headerMap, 218 // see dynamic-table for more information on specialColumns, headerMap,
219 // columnMap, and specialSort 219 // columnMap, and specialSort
220 var specialColumns = ["id", "task"]; 220 var specialColumns = ["id", "task"];
221 221
222 var headerMap = { 222 var headerMap = {
223 // "id" and "task" are special, so they don't go here. They have their 223 // "id" and "task" are special, so they don't go here. They have their
224 // headers hard-coded above. 224 // headers hard-coded above.
225 "android_devices": "Android Devices", 225 "android_devices": "Android Devices",
226 "cores": "Cores",
227 "cpu": "CPU",
228 "device": "Non-android Device",
229 "device_os": "Device OS",
230 "device_type": "Device Type",
231 "disk_space": "Free Space (MB)",
232 "gpu": "GPU",
233 "os": "OS",
234 "pool": "Pool",
235 "status": "Status",
236 "xcode_version": "XCode Version",
237 "battery_health": "Battery Health", 226 "battery_health": "Battery Health",
238 "battery_level": "Battery Level (%)", 227 "battery_level": "Battery Level (%)",
239 "battery_status": "Battery Status", 228 "battery_status": "Battery Status",
240 "battery_temperature": "Battery Temp (°C)", 229 "battery_temperature": "Battery Temp (°C)",
241 "battery_voltage": "Battery Voltage (mV)", 230 "battery_voltage": "Battery Voltage (mV)",
242 "bot_temperature": "Bot Temp (°C)", 231 "bot_temperature": "Bot Temp (°C)",
232 "cores": "Cores",
233 "cpu": "CPU",
234 "device": "Non-android Device",
235 "device_os": "Device OS",
243 "device_temperature": "Device Temp (°C)", 236 "device_temperature": "Device Temp (°C)",
237 "device_type": "Device Type",
238 "disk_space": "Free Space (MB)",
239 "first_seen": "First Seen",
240 "gpu": "GPU",
241 "last_seen": "Last Seen",
242 "os": "OS",
243 "pool": "Pool",
244 "status": "Status",
245 "xcode_version": "XCode Version",
244 }; 246 };
245 247
246 var columnMap = { 248 var columnMap = {
247 android_devices: function(bot) { 249 android_devices: function(bot) {
248 var devs = this._attribute(bot, "android_devices", "0"); 250 var devs = this._attribute(bot, "android_devices", "0");
249 if (this._verbose) { 251 if (this._verbose) {
250 return devs.join(" | ") + " devices available"; 252 return devs.join(" | ") + " devices available";
251 } 253 }
252 // max() works on strings as long as they can be coerced to Number. 254 // max() works on strings as long as they can be coerced to Number.
253 return Math.max(...devs) + " devices available"; 255 return Math.max(...devs) + " devices available";
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 if (!device.okay) { 511 if (!device.okay) {
510 return "bad-device"; 512 return "bad-device";
511 } 513 }
512 return ""; 514 return "";
513 }, 515 },
514 516
515 }); 517 });
516 })(); 518 })();
517 </script> 519 </script>
518 </dom-module> 520 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698