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

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

Issue 2283133002: Add bot-page stubs (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Makefile should download demo json Created 4 years, 3 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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>
OLDNEW
« no previous file with comments | « appengine/swarming/elements/elements.html ('k') | appengine/swarming/elements/res/imp/botpage/bot-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698