forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupgrade.xsl
107 lines (100 loc) · 4.5 KB
/
upgrade.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
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:include href="footer.xsl"/>
<xsl:include href="headerback.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:if test="cdash/upgrade=1">
<xsl:if test="cdash/backupwritable=0">
<font color="#FF0000">Your backup directory is not writable, make sure that the web process can write into the directory.</font><br/>
</xsl:if>
<xsl:if test="cdash/uploadwritable=0">
<font color="#FF0000">Your upload directory is not writable, make sure that the web process can write into the directory.</font><br/>
</xsl:if>
<xsl:if test="cdash/rsswritable=0">
<font color="#FF0000">Your rss directory is not writable, make sure that the web process can write into the directory.</font><br/>
</xsl:if>
<xsl:if test="cdash/backupwritable=1">
<xsl:if test="cdash/rsswritable=1">
<script type="text/javascript">
var version='<xsl:value-of select="cdash/minversion"/>';
</script>
<script src="javascript/jquery-1.6.2.js" type="text/javascript" charset="utf-8"></script>
<script src="javascript/cdashUpgrade.js" type="text/javascript" charset="utf-8"></script>
</xsl:if>
</xsl:if>
</xsl:if>
</head>
<body bgcolor="#ffffff">
<xsl:call-template name="headerback"/>
<xsl:if test="string-length(cdash/alert)>0">
<b><xsl:value-of select="cdash/alert"/></b>
</xsl:if>
<br/><br/>
<b>Current CDash database schema: </b> <xsl:value-of select="cdash/minversion"/>
<br/>
<form name="form1" enctype="multipart/form-data" method="post" action="">
<table border="0">
<tr>
<td><div align="right">Assign unknown builds to group based on type:</div></td>
<td><div align="left"><input type="submit" name="AssignBuildToDefaultGroups" value="Assign builds to default groups"/></div></td>
</tr>
<tr>
<td><div align="right">Fix build group based on build rules:</div></td>
<td><div align="left"><input type="submit" name="FixBuildBasedOnRule" value="Fix build groups"/></div></td>
</tr>
<tr>
<td><div align="right">Delete builds with wrong start date:</div></td>
<td><div align="left"><input type="submit" name="CheckBuildsWrongDate" value="Check builds"/><input type="submit" name="DeleteBuildsWrongDate" value="Delete builds"/></div></td>
</tr>
<tr>
<td><div align="right">Compute test timing:</div></td>
<td><div align="left">for the last <input type="text" name="TestTimingDays" size="2" value="4"/> days <input type="submit" name="ComputeTestTiming" value="Compute test timing"/></div></td>
</tr>
<tr>
<td><div align="right">Compute update statistics:</div></td>
<td><div align="left">for the last <input type="text" name="UpdateStatisticsDays" size="2" value="4"/> days <input type="submit" name="ComputeUpdateStatistics" value="Compute update statistics"/></div></td>
</tr>
<tr>
<td><div align="right">Compress test output (can take a long time):</div></td>
<td><input type="submit" name="CompressTestOutput" value="Compress test output"/></td>
</tr>
<tr>
<td><div align="right">Cleanup CDash (can take a long time):</div></td>
<td><input type="submit" name="Cleanup" value="Cleanup database"/></td>
</tr>
<tr>
<td><div align="right">Upgrade CDash: (this might take some time)</div></td>
<td><div align="left"><input type="submit" name="Upgrade" value="Upgrade CDash"/></div></td>
</tr>
</table>
</form><br/>
<div id="Upgrade-Tables-Status"></div>
<div id="Upgrade-0-8-Status"></div>
<div id="Upgrade-1-0-Status"></div>
<div id="Upgrade-1-2-Status"></div>
<div id="Upgrade-1-4-Status"></div>
<div id="Upgrade-1-6-Status"></div>
<div id="Upgrade-1-8-Status"></div>
<div id="Upgrade-2-0-Status"></div>
<div id="Upgrade-2-2-Status"></div>
<div id="Upgrade-2-4-Status"></div>
<br/>
<div id="DoneStatus"></div>
<br/>
<br/>
<!-- FOOTER -->
<br/>
<xsl:call-template name="footer"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>