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

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

Issue 2558633009: Make old version bots show up yellow on botlist (Closed)
Patch Set: Make classes additive Created 4 years 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 --> 6 -->
7 <!DOCTYPE html> 7 <!DOCTYPE html>
8 <html> 8 <html>
9 <head> 9 <head>
10 <title>bot-list Demo</title> 10 <title>bot-list Demo</title>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 }; 53 };
54 54
55 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/bots\/count/, JSON.str ingify(mockFleetSummary)); 55 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/bots\/count/, JSON.str ingify(mockFleetSummary));
56 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/count/, JSON.stringif y(mockFleetSummary)); 56 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/count/, JSON.stringif y(mockFleetSummary));
57 57
58 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/bots\/dimensions/, JSO N.stringify(fleetData)); 58 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/bots\/dimensions/, JSO N.stringify(fleetData));
59 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/dimensions/, JSON.str ingify(fleetData)); 59 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/dimensions/, JSON.str ingify(fleetData));
60 60
61 var details = { 61 var details = {
62 server_version: "1234-deadbeef", 62 server_version: "1234-deadbeef",
63 bot_version: "ec524892ac1cd0748b88c2271371df51402f3daf",
63 machine_provider_template: "http://example.com#/leases/%s?foo=bar", 64 machine_provider_template: "http://example.com#/leases/%s?foo=bar",
64 }; 65 };
65 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON .stringify(details)); 66 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON .stringify(details));
66 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri ngify(details)); 67 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri ngify(details));
67 68
68 var count = { 69 var count = {
69 count: 905, 70 count: 905,
70 busy: 581, 71 busy: 581,
71 dead: 10, 72 dead: 10,
72 quarantined: 0, 73 quarantined: 0,
73 } 74 }
74 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/count.*/, JSON.string ify(count)); 75 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/count.*/, JSON.string ify(count));
75 </script> 76 </script>
76 77
77 <link rel="import" href="bot-list.html"> 78 <link rel="import" href="bot-list.html">
78 </head> 79 </head>
79 <body> 80 <body>
80 81
81 <bot-list 82 <bot-list
82 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com"> 83 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com">
83 </bot-list> 84 </bot-list>
84 85
85 </body> 86 </body>
86 </html> 87 </html>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/res/imp/botlist/bot-list.html ('k') | appengine/swarming/ui/res/imp/tasklist/task-filters.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698