forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
indextable.xsl
160 lines (144 loc) · 5.67 KB
/
indextable.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="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>
<table border="0" cellpadding="4" cellspacing="0" width="100%" id="indexTable" class="tabb">
<thead>
<tr class="table-heading1">
<td colspan="6" align="left" class="nob"><h3>Dashboards</h3></td>
</tr>
<tr class="table-heading">
<th align="center" id="sort_0" width="10%"><b>Project</b></th>
<td align="center" width="65%"><b>Description</b></td>
<th align="center" class="nob" id="sort_2" width="13%"><b>Last activity</b></th>
</tr>
</thead>
<tbody>
<xsl:for-each select="cdash/project">
<tr>
<td align="center" >
<a>
<xsl:attribute name="href">index.php?project=<xsl:value-of select="name_encoded"/></xsl:attribute>
<xsl:value-of select="name"/>
</a></td>
<td align="left"><xsl:value-of select="description"/></td>
<td align="center" class="nob">
<span class="sorttime" style="display:none"><xsl:value-of select="lastbuilddatefull"/></span>
<a class="builddateelapsed">
<xsl:attribute name="alt"><xsl:value-of select="lastbuild"/> <!-- (<xsl:value-of select="uploadsize"/> GB) --></xsl:attribute>
<xsl:attribute name="href">index.php?project=<xsl:value-of select="name_encoded"/>&date=<xsl:value-of select="lastbuilddate"/></xsl:attribute>
<xsl:value-of select="lastbuild_elapsed"/>
</a>
<img src="images/cleardot.gif">
<xsl:attribute name="class">activity-level-<xsl:value-of select="activity"/></xsl:attribute>
</img>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="1" colspan="14" align="left" bgcolor="#888888"></td>
</tr>
<tr>
<td height="1" colspan="14" align="right">
<div id="showold">
<xsl:if test="cdash/allprojects=0">
<a href="index.php?allprojects=1">Show all <xsl:value-of select="cdash/nprojects"/> projects</a>
</xsl:if>
<xsl:if test="cdash/allprojects=1">
<a href="index.php">Hide old projects</a>
</xsl:if>
</div>
</td>
</tr>
</table>
<!-- 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>