forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.xsl
108 lines (95 loc) · 3.86 KB
/
error.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:include href="footer.xsl"/>
<!-- Include local common files -->
<xsl:include href="local/header.xsl"/>
<xsl:include href="local/footer.xsl"/>
<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 match="/">
<html>
<head>
<title><xsl:value-of select="cdash/title"/></title>
<meta name="robots" content="noindex,nofollow" />
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="StyleSheet" type="text/css">
<xsl:attribute name="href"><xsl:value-of select="cdash/cssfile"/></xsl:attribute>
</link>
<script src="javascript/jquery-1.6.2.js" type="text/javascript" charset="utf-8"></script>
<link type="text/css" rel="stylesheet" href="javascript/jquery.qtip.min.css" />
<script src="javascript/jquery.qtip.min.js" type="text/javascript" charset="utf-8"></script>
<!-- Include the sorting -->
<script src="javascript/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
<script src="javascript/jquery.tablesorter.js" type="text/javascript" charset="utf-8"></script>
<!-- include jqModal -->
<script src="javascript/jqModal.js" type="text/javascript" charset="utf-8"></script>
<link type="text/css" rel="stylesheet" media="all" href="javascript/jqModal.css" />
<script src="javascript/cdashTableSorter.js" type="text/javascript" charset="utf-8"></script>
<script src="javascript/cdashIndexTable.js" type="text/javascript" charset="utf-8"></script>
<xsl:if test="/cdash/uselocaldirectory=1">
<link type="text/css" rel="stylesheet" href="local/cdash.local.css" />
</xsl:if>
</head>
<body>
<div id="header">
<div id="headertop">
<div id="topmenu">
<xsl:choose>
<xsl:when test="cdash/user/id>0">
<a href="user.php">My CDash</a>
</xsl:when>
<xsl:otherwise><a href="user.php">Login</a> <a href="register.php">Register</a></xsl:otherwise>
</xsl:choose>
<xsl:if test="cdash/user/id>0">
<a href="user.php?logout=1">Log Out</a>
</xsl:if>
</div>
</div>
<div id="headerbottom">
<div id="headerlogo">
<a>
<xsl:attribute name="href">
<xsl:value-of select="cdash/dashboard/home"/></xsl:attribute>
<img id="projectlogo" border="0" height="50px">
<xsl:attribute name="alt"></xsl:attribute>
<xsl:choose>
<xsl:when test="cdash/dashboard/logoid>0">
<xsl:attribute name="src">displayImage.php?imgid=<xsl:value-of select="cdash/dashboard/logoid"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">images/cdash.gif</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</a>
</div>
<div id="headername2">
<xsl:value-of select="cdash/dashboard/title"/>
<span id="subheadername">
<xsl:value-of select="cdash/dashboard/subtitle"/>
</span>
</div>
</div>
</div>
<!-- Main table -->
<br/>
<xsl:if test="string-length(cdash/upgradewarning)>0">
<p style="color:red"><b>The current database schema doesn't match the version of CDash you are running,
upgrade your database structure in the <a href="upgrade.php">Administration/CDash maintenance panel of CDash</a></b></p>
</xsl:if>
<xsl:value-of select="cdash/error"/><br/>
<a href="index.php">Go to the list of dashboards</a>
<br/>
<!-- FOOTER -->
<xsl:choose>
<xsl:when test="/cdash/uselocaldirectory=1">
<xsl:call-template name="footer_local"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="footer"/>
</xsl:otherwise>
</xsl:choose>
</body>
</html>
</xsl:template>
</xsl:stylesheet>