Add demo support for openstack's live zuul feed
Change-Id: I8591231f39ee13f1e1b771bd3e7d71a1a927bba3
diff --git a/etc/status/public_html/app.js b/etc/status/public_html/app.js
index d752149..16195e8 100644
--- a/etc/status/public_html/app.js
+++ b/etc/status/public_html/app.js
@@ -21,9 +21,11 @@
$queueResultsNum, $pipelines, $jq;
var xhr, zuul,
demo = location.search.match(/[?&]demo=([^?&]*)/),
+ source_url = location.search.match(/[?&]source_url=([^?&]*)/),
source = demo ?
'./status-' + (demo[1] || 'basic') + '.json-sample' :
'status.json';
+ source = source_url ? source_url[1] : source;
zuul = {
enabled: true,