Add demo support for openstack's live zuul feed

Change-Id: I8591231f39ee13f1e1b771bd3e7d71a1a927bba3
This commit is contained in:
Joshua Hesketh 2014-03-21 14:25:53 +11:00
parent 5855e99230
commit 668700bb1a
1 changed files with 2 additions and 0 deletions

View File

@ -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,