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

Unified Diff: appengine/swarming/elements/res/imp/index/swarming-index.html

Issue 2367413003: Update Stats element to use new directory layout (Closed) Base URL: git@github.com:luci/luci-py@master
Patch Set: Add demo data 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/res/imp/index/swarming-index.html
diff --git a/appengine/swarming/elements/res/imp/index/swarming-index.html b/appengine/swarming/elements/res/imp/index/swarming-index.html
index c9e050967ced70e0b208d5ca5edb5d36f5bbd2ac..59c26244c742dfddf7795880e2a3da41b9b09bf8 100644
--- a/appengine/swarming/elements/res/imp/index/swarming-index.html
+++ b/appengine/swarming/elements/res/imp/index/swarming-index.html
@@ -51,7 +51,7 @@
permissions="{{_permissions}}"
server_version="{{_server_version}}"
name="Swarming Server"
- busy="[[_busy]]">
+ busy="[[_or(_busy1,busy2)]]">
<h2>Service Status</h2>
<div>Server Version: [[_server_version.server_version]]</div>
@@ -113,10 +113,15 @@
</ol>
</div>
+ <!-- TODO(kjlubick): Enable this when the stats endpoint uses oauth
<h2>Stats</h2>
- <div>TODO(kjlubick) add these in</div>
-
-
+ <div class="stats">
+ <stats-overview
+ auth_headers=[[_auth_headers]]
+ busy="{{_busy2}}">
+ </stats-overview>
+ </div>
+ -->
</swarming-app>
</template>
@@ -141,7 +146,11 @@
type: String,
value: "...",
},
- _busy: {
+ _busy1: {
+ type: Boolean,
+ value: false,
+ },
+ _busy2: {
type: Boolean,
value: false,
},
@@ -181,7 +190,7 @@
this.set("_busy", true);
p.then(JSON.parse).then(function(t){
this.set("_bootstrap_token", t.bootstrap_token);
- this.set("_busy", false);
+ this.set("_busy1", false);
}.bind(this))
},

Powered by Google App Engine
This is Rietveld 408576698