Attached Files | cdash-script.diff [^] (6,388 bytes) 2008-03-14 00:15 [Show Content] [Hide Content]Index: manageBuildGroup.xsl
===================================================================
--- manageBuildGroup.xsl (revision 717)
+++ manageBuildGroup.xsl (working copy)
@@ -17,14 +17,16 @@
</link>
<!-- Functions to confirm the remove -->
- <script language="JavaScript">
+ <xsl:text disable-output-escaping="yes">
+ <script language="JavaScript">
function confirmDelete() {
if (window.confirm("Are you sure you want to delete this group? If the group is not empty, builds will be put in their original group.")){
return true;
}
return false;
}
- </script>
+ </script>
+ </xsl:text>
</head>
<body bgcolor="#ffffff">
<xsl:call-template name="headerback"/>
Index: createProject.xsl
===================================================================
--- createProject.xsl (revision 717)
+++ createProject.xsl (working copy)
@@ -15,14 +15,16 @@
<xsl:attribute name="href"><xsl:value-of select="cdash/cssfile"/></xsl:attribute>
</link>
<!-- Functions to confirm the remove -->
- <script language="JavaScript">
+ <xsl:text disable-output-escaping="yes">
+ <script language="JavaScript">
function confirmDelete() {
if (window.confirm("Are you sure you want to delete this project?")){
return true;
}
return false;
}
- </script>
+ </script>
+ </xsl:text>
</head>
<body bgcolor="#ffffff">
Index: viewMap.xsl
===================================================================
--- viewMap.xsl (revision 717)
+++ viewMap.xsl (working copy)
@@ -120,7 +120,8 @@
<script type="text/javascript">
<xsl:attribute name="src">http://maps.google.com/maps?file=api&v=2&key=<xsl:value-of select="cdash/dashboard/googlemapkey"/></xsl:attribute>
</script>
- <script type="text/javascript">
+ <xsl:text disable-output-escaping="yes">
+ <script type="text/javascript">
// Creates a marker whose info window displays the letter corresponding
// to the given index.
function createMarker(point,title)
@@ -138,20 +139,24 @@
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -30.00), 2);
map.addControl(new GLargeMapControl());
+ </xsl:text>
<xsl:for-each select="cdash/site">
<xsl:if test="string-length(latitude)>0">
var point = new GLatLng(<xsl:value-of select="latitude"/>,<xsl:value-of select="longitude"/>);
map.addOverlay(createMarker(point,'<xsl:value-of select="name"/>'));
</xsl:if>
- </xsl:for-each>
+ </xsl:for-each><xsl:text disable-output-escaping="yes">
}
}
- </script>
+ </script>
+ </xsl:text>
<center><div id="map" style="width: 700px; height: 400px"></div></center>
-<script type="text/javascript">
+<xsl:text disable-output-escaping="yes">
+<script type="text/javascript">
Rounded('rounded', 15, 15,0,0);
-</script>
+</script>
+</xsl:text>
<!-- FOOTER -->
<br/>
Index: register.xsl
===================================================================
--- register.xsl (revision 717)
+++ register.xsl (working copy)
@@ -12,12 +12,14 @@
<link rel="StyleSheet" type="text/css">
<xsl:attribute name="href"><xsl:value-of select="cdash/cssfile"/></xsl:attribute>
</link>
- <script>
+ <xsl:text disable-output-escaping="yes">
+ <script language="javascript">
function doSubmit()
{
document.getElementById('url').value = 'catchbot';
}
- </script>
+ </script>
+ </xsl:text>
</head>
<body>
Index: footer.xsl
===================================================================
--- footer.xsl (revision 717)
+++ footer.xsl (working copy)
@@ -25,15 +25,17 @@
<!-- Google Analytics -->
<xsl:if test="string-length(/cdash/dashboard/googletracker)>0">
-<script type="text/javascript">
+<xsl:text disable-output-escaping="yes">
+<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-</script>
-<script type="text/javascript">
-var pageTracker = _gat._getTracker("<xsl:value-of select="/cdash/dashboard/googletracker"/>");
+</script>
+<script type="text/javascript">
+var pageTracker = _gat._getTracker("</xsl:text><xsl:value-of select="/cdash/dashboard/googletracker"/><xsl:text disable-output-escaping="yes">");
pageTracker._initData();
pageTracker._trackPageview();
-</script>
+</script>
+</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Index: viewSite.xsl
===================================================================
--- viewSite.xsl (revision 717)
+++ viewSite.xsl (working copy)
@@ -41,7 +41,8 @@
<script type="text/javascript">
<xsl:attribute name="src">http://maps.google.com/maps?file=api&v=2&key=<xsl:value-of select="cdash/dashboard/googlemapkey"/></xsl:attribute>
</script>
- <script type="text/javascript">
+ <xsl:text disable-output-escaping="yes">
+ <script type="text/javascript">
// Creates a marker whose info window displays the letter corresponding
// to the given index.
function createMarker(point,title)
@@ -57,6 +58,7 @@
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
+ </xsl:text>
<xsl:if test="string-length(cdash/site/latitude)>0">
map.setCenter(new GLatLng(<xsl:value-of select="cdash/site/latitude"/>,<xsl:value-of select="cdash/site/longitude"/>),5);
map.addControl(new GLargeMapControl());
@@ -67,9 +69,11 @@
<xsl:if test="string-length(cdash/site/latitude)=0">
map.setCenter(new GLatLng(0,0),1);
</xsl:if>
+ <xsl:text disable-output-escaping="yes">
}
}
- </script>
+ </script>
+ </xsl:text>
<body onload="load()" onunload="GUnload()">
<center><div id="map" style="width: 700px; height: 400px"></div></center>
</body>
|