git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added templating to google gadget xml file in monitor-server; previously it
[monitor.git]
/
web
/
MonitorWeb
/
monitorweb
/
static
/
xml
/
gadget.xml.in
diff --git
a/web/MonitorWeb/monitorweb/static/xml/gadget.xml
b/web/MonitorWeb/monitorweb/static/xml/gadget.xml.in
similarity index 65%
rename from
web/MonitorWeb/monitorweb/static/xml/gadget.xml
rename to
web/MonitorWeb/monitorweb/static/xml/gadget.xml.in
index
bae4356
..
66ec12e
100644
(file)
--- a/
web/MonitorWeb/monitorweb/static/xml/gadget.xml
+++ b/
web/MonitorWeb/monitorweb/static/xml/gadget.xml.in
@@
-1,6
+1,6
@@
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<?xml version="1.0" encoding="UTF-8"?>
<Module>
-<ModulePrefs title="MyOps Summary
" title_url="http://www.planet-lab.org
">
+<ModulePrefs title="MyOps Summary
PLC_NAME" title_url="http://PLC_WWW_HOSTNAME
">
<Require feature="dynamic-height"/>
</ModulePrefs>
<Content type="html"><![CDATA[
<Require feature="dynamic-height"/>
</ModulePrefs>
<Content type="html"><![CDATA[
@@
-10,7
+10,7
@@
var displaycontent = function (responseText) {
_gel('content_div').innerHTML = responseText;
_IG_AdjustIFrameHeight();
};
_gel('content_div').innerHTML = responseText;
_IG_AdjustIFrameHeight();
};
-_IG_FetchContent('http://
monitor.planet-lab.org
/monitor/summary', displaycontent, { refreshInterval: 300 });
+_IG_FetchContent('http://
MONITOR_HOSTNAME
/monitor/summary', displaycontent, { refreshInterval: 300 });
</script>
]]></Content>
</Module>
</script>
]]></Content>
</Module>