| 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 <bot-list> | 9 <bot-list> |
| 10 | 10 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 if (bot.is_dead) { | 363 if (bot.is_dead) { |
| 364 return "dead"; | 364 return "dead"; |
| 365 } | 365 } |
| 366 if (bot.quarantined) { | 366 if (bot.quarantined) { |
| 367 return "quarantined"; | 367 return "quarantined"; |
| 368 } | 368 } |
| 369 return ""; | 369 return ""; |
| 370 }, | 370 }, |
| 371 | 371 |
| 372 _botLink: function(id) { | 372 _botLink: function(id) { |
| 373 // TODO(kjlubick) Make this point to /newui/ when appropriate. | 373 return "/newui/bot?id="+id; |
| 374 return "/restricted/bot/"+id; | |
| 375 }, | 374 }, |
| 376 | 375 |
| 377 | 376 |
| 378 _androidAliasDevice: function(device) { | 377 _androidAliasDevice: function(device) { |
| 379 if (device.notReady) { | 378 if (device.notReady) { |
| 380 return UNAUTHENTICATED.toUpperCase(); | 379 return UNAUTHENTICATED.toUpperCase(); |
| 381 } | 380 } |
| 382 return swarming.alias.android(this._deviceType(device)); | 381 return swarming.alias.android(this._deviceType(device)); |
| 383 }, | 382 }, |
| 384 | 383 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 401 if (data && data.task_id) { | 400 if (data && data.task_id) { |
| 402 return "/user/task/" + data.task_id; | 401 return "/user/task/" + data.task_id; |
| 403 } | 402 } |
| 404 return undefined; | 403 return undefined; |
| 405 } | 404 } |
| 406 | 405 |
| 407 }); | 406 }); |
| 408 })(); | 407 })(); |
| 409 </script> | 408 </script> |
| 410 </dom-module> | 409 </dom-module> |
| OLD | NEW |