forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueryTests.xsl
160 lines (139 loc) · 4.06 KB
/
queryTests.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:include href="filterdataTemplate.xsl"/>
<xsl:include href="header.xsl"/>
<xsl:include href="footer.xsl"/>
<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="StyleSheet" type="text/css">
<xsl:attribute name="href">
<xsl:value-of select="cdash/cssfile"/>
</xsl:attribute>
</link>
<xsl:call-template name="headscripts"/>
<!-- Include JavaScript -->
<script src="javascript/cdashFilters.js" type="text/javascript" charset="utf-8"></script>
</head>
<body bgcolor="#ffffff">
<xsl:choose>
<xsl:when test="/cdash/uselocaldirectory=1">
<xsl:call-template name="header_local"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="header"/>
</xsl:otherwise>
</xsl:choose>
<br/>
<h3>Query <xsl:value-of select="cdash/dashboard/projectname"/> Tests:
<xsl:value-of select="count(cdash/builds/build)"/> matches</h3>
<!-- Filters? -->
<xsl:if test="count(cdash/filterdata) = 1">
<xsl:call-template name="filterdata" select="."/>
<br/>
</xsl:if>
<div id="labelshowfilters">
<a id="label_showfilters" href="javascript:filters_toggle();">
<xsl:if test="cdash/filterdata/showfilters = 0">Show Filters</xsl:if>
<xsl:if test="cdash/filterdata/showfilters != 0">Hide Filters</xsl:if>
</a>
</div>
<!-- Hide a div for javascript to know if time status is on -->
<xsl:if test="/cdash/project/showtesttime=1">
<div id="showtesttimediv" style="display:none"></div>
</xsl:if>
<!-- Results -->
<table id="queryTestsTable" cellspacing="0" cellpadding="3" class="tabb">
<thead>
<tr class="table-heading1">
<th id="sort_0">Site</th>
<th id="sort_1">Build Name</th>
<th id="sort_2">Test Name</th>
<th id="sort_3">Status</th>
<xsl:if test="/cdash/project/showtesttime=1">
<th id="sort_4">Time Status</th>
<th id="sort_5">Time</th>
<th id="sort_6">Details</th>
<th id="sort_7" class="nob">Build Time</th>
</xsl:if>
<xsl:if test="/cdash/project/showtesttime!=1">
<th id="sort_4">Time</th>
<th id="sort_5">Details</th>
<th id="sort_6" class="nob">Build Time</th>
</xsl:if>
</tr>
</thead>
<xsl:for-each select="cdash/builds/build">
<tr>
<td><a>
<xsl:attribute name="href">
<xsl:value-of select="siteLink"/>
</xsl:attribute>
<xsl:value-of select="site"/>
</a></td>
<td><a>
<xsl:attribute name="href">
<xsl:value-of select="buildSummaryLink"/>
</xsl:attribute>
<xsl:value-of select="buildName"/>
</a></td>
<td>
<xsl:value-of select="testname"/>
</td>
<td align="center">
<xsl:attribute name="class">
<xsl:value-of select="statusclass"/>
</xsl:attribute>
<a>
<xsl:attribute name="href">
<xsl:value-of select="testDetailsLink"/>
</xsl:attribute>
<xsl:value-of select="status"/>
</a>
</td>
<xsl:if test="/cdash/project/showtesttime=1">
<td align="center">
<xsl:attribute name="class">
<xsl:value-of select="timestatusclass"/>
</xsl:attribute>
<a>
<xsl:attribute name="href">
<xsl:value-of select="testDetailsLink"/>
</xsl:attribute>
<xsl:value-of select="timestatus"/>
</a>
</td>
</xsl:if>
<td>
<xsl:value-of select="time"/>
</td>
<td>
<xsl:value-of select="details"/>
</td>
<td class="nob">
<xsl:value-of select="buildstarttime"/>
</td>
</tr>
</xsl:for-each>
</table>
<br/>
<!-- FOOTER -->
<br/>
<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>