forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.xsl
55 lines (52 loc) · 2.24 KB
/
footer.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<xsl:template name="footer">
<div id="footer">
<div id="kitwarelogo">
<a href="http://www.kitware.com"><img src="images/blogo.gif" border="0" height="30" alt="logo" /></a>
</div>
<div id="footerlogo">
<a href="http://www.cdash.org"><img src="images/logo2.gif" border="0" height="40" alt="CDash logo"/></a>
<span id="footertext">
CDash
<xsl:choose>
<xsl:when test="(count(/cdash/user/admin)=1 and /cdash/user/admin!=0) or (count(/cdash/user_is_admin)=1 and /cdash/user_is_admin!=0)">
<a href="svninfo.php"><xsl:value-of select="/cdash/version"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/cdash/version"/>
</xsl:otherwise>
</xsl:choose>
<xsl:text disable-output-escaping="yes"> &copy;</xsl:text>
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> <a href="http://www.kitware.com">Kitware</a>
| <a href="http://www.cdash.org/Bug" target="blank">Report problems</a>
<xsl:choose>
<xsl:when test="string-length(/cdash/generationtime)>0">
| <xsl:value-of select="/cdash/generationtime"/>s
</xsl:when>
<xsl:otherwise>
<xsl:if test="string-length(/cdash/database/size)>0">
| <xsl:value-of select="/cdash/database/size"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</span>
</div>
</div>
<!-- Google Analytics -->
<xsl:if test="string-length(/cdash/dashboard/googletracker)>0">
<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:text><xsl:value-of select="/cdash/dashboard/googletracker"/><xsl:text disable-output-escaping="yes">");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>