GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / cruise / reporting-app / xsl / changelists / header.xsl
blob8fb61b500dd6da3d21bc81fd6bf2b1bd6533da4f
1 <?xml version="1.0"?>
2 <!--********************************************************************************
3 * CruiseControl, a Continuous Integration Toolkit
4 * Copyright (c) 2001, ThoughtWorks, Inc.
5 * 651 W Washington Ave. Suite 600
6 * Chicago, IL 60661 USA
7 * All rights reserved.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
13 * + Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
16 * + Redistributions in binary form must reproduce the above
17 * copyright notice, this list of conditions and the following
18 * disclaimer in the documentation and/or other materials provided
19 * with the distribution.
21 * + Neither the name of ThoughtWorks, Inc., CruiseControl, nor the
22 * names of its contributors may be used to endorse or promote
23 * products derived from this software without specific prior
24 * written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
30 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 ********************************************************************************-->
38 <xsl:stylesheet
39 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
40 xmlns:lxslt="http://xml.apache.org/xslt">
42 <xsl:output method="html"/>
44 <xsl:template match="/">
45 <table align="center" cellpadding="2" cellspacing="0" border="0" width="98%">
47 <xsl:if test="cruisecontrol/build/@error">
48 <tr><td class="header-title">BUILD FAILED</td></tr>
49 <tr><td class="header-data">
50 <span class="header-label">Error Message:&#160;</span>
51 <xsl:value-of select="cruisecontrol/build/@error"/>
52 </td></tr>
53 </xsl:if>
55 <xsl:if test="not (cruisecontrol/build/@error)">
56 <tr><td class="header-title">BUILD COMPLETE&#160;-&#160;
57 <xsl:value-of select="cruisecontrol/info/property[@name='label']/@value"/>
58 </td></tr>
59 </xsl:if>
61 <tr><td class="header-data">
62 <span class="header-label">Date of build:&#160;</span>
63 <xsl:value-of select="cruisecontrol/info/property[@name='lastbuild']/@value"/>
64 </td></tr>
65 <tr><td class="header-data">
66 <span class="header-label">Time to build:&#160;</span>
67 <xsl:value-of select="cruisecontrol/build/@time"/>
68 </td></tr>
69 <tr>
70 <td class="header-data">
71 <span class="header-label">Last changed:&#160;</span>
72 <xsl:value-of select="cruisecontrol/modifications/changelist/@dateOfSubmission"/>
73 </td>
74 </tr>
75 <tr>
76 <td class="header-data">
77 <span class="header-label">Last log entry:&#160;</span>
78 <xsl:value-of select="cruisecontrol/modifications/changelist/description"/>
79 </td>
80 </tr>
81 </table>
82 </xsl:template>
84 </xsl:stylesheet>