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

Unified Diff: appengine/swarming/elements/res/imp/tasklist/task-list-demo.html

Issue 2296313002: Add server version to all pages (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/elements/res/imp/index/swarming-index-demo.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
diff --git a/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html b/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
index fcfe2eb5625fbe3e606d3f76cc7b0c7f5f3baf57..9445a8ecd48c4a5f9ad35a5f457c7cdeb6741788 100644
--- a/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
+++ b/appengine/swarming/elements/res/imp/tasklist/task-list-demo.html
@@ -68,6 +68,12 @@
};
server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
+
+ var details = {
+ server_version: "1234-deadbeef",
+ };
+ server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON.stringify(details));
+ server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stringify(details));
</script>
<link rel="import" href="task-list.html">
« no previous file with comments | « appengine/swarming/elements/res/imp/index/swarming-index-demo.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698