1<xsl:stylesheet
2    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3  <xsl:output method="xml" indent="yes"  doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
4   doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
5    <xsl:include href="headscripts.xsl"/>
6<!-- Group footer -->
7<xsl:template name="groupfooter">
8</xsl:template>
9
10<!-- Main Header -->
11<xsl:template name="header">
12
13<div id="header">
14 <div id="headertop">
15  <div id="topmenu">
16    <a><xsl:attribute name="href">user.php</xsl:attribute>
17        <xsl:choose>
18          <xsl:when test="cdash/user/id>0">My CDash</xsl:when>
19          <xsl:otherwise>Login</xsl:otherwise>
20        </xsl:choose></a><a href="index.php">All Dashboards</a>
21     <xsl:if test="cdash/user/id>0">
22       <a href="user.php?logout=1">Log Out</a>
23     </xsl:if>
24  </div>
25
26  <div id="datetime">
27   <xsl:value-of select="cdash/dashboard/datetime"/>
28  </div>
29 <div id="feedicon" alt="RSS Feed" title="RSS Feed">
30   <xsl:if test="cdash/dashboard/projectpublic=1">
31      <a>
32      <xsl:attribute name="href">rss/SubmissionRSS<xsl:value-of select="cdash/dashboard/projectname"/>.xml</xsl:attribute><img src="images/feed-icon16x16.png" alt="RSS" width="14" height="14" border="0" />
33      </a>
34   </xsl:if>
35   </div>
36 </div>
37
38 <div id="headerbottom">
39    <div id="headerlogo">
40      <a>
41        <xsl:attribute name="href">
42        <xsl:value-of select="cdash/dashboard/home"/></xsl:attribute>
43        <img id="projectlogo" border="0" height="50px">
44        <xsl:attribute name="alt"></xsl:attribute>
45        <xsl:choose>
46        <xsl:when test="cdash/dashboard/logoid>0">
47          <xsl:attribute name="src">displayImage.php?imgid=<xsl:value-of select="cdash/dashboard/logoid"/></xsl:attribute>
48         </xsl:when>
49        <xsl:otherwise>
50         <xsl:attribute name="src">images/cdash.gif</xsl:attribute>
51        </xsl:otherwise>
52        </xsl:choose>
53        </img>
54      </a>
55    </div>
56    <div id="headername">
57      <xsl:value-of select="cdash/dashboard/projectname"/>
58      <span id="subheadername">
59        <xsl:value-of select="cdash/subprojectname"/>
60      </span>
61    </div>
62    <div id="headermenu">
63        <ul id="navigation">
64        <xsl:choose>
65        <xsl:when test="string-length(cdash/menu/back)>0">
66        <li>
67        <a>
68        <xsl:attribute name="href">index.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/></xsl:attribute>
69        Dashboard</a>
70        </li><li id="Back">
71        <a>
72        <xsl:attribute name="href"><xsl:value-of select="cdash/menu/back"/></xsl:attribute>
73        Back</a>
74        </li>
75        </xsl:when>
76        <xsl:otherwise>
77        <li>
78        <!-- Back to the main page if not a subpackage otherwise goes back to the list of subprojects -->
79
80        <a>
81        <xsl:attribute name="href">
82        index.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/>
83        </xsl:attribute>
84        Dashboard</a>
85        <ul>
86        <li><a>
87        <xsl:attribute name="href">viewChanges.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/><xsl:value-of select="cdash/extraurl"/></xsl:attribute>Updates</a></li>
88        <li><a>
89        <xsl:attribute name="href">buildOverview.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/><xsl:value-of select="cdash/extraurl"/></xsl:attribute>
90        Builds</a></li>
91        <li><a>
92        <xsl:attribute name="href">testOverview.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/><xsl:value-of select="cdash/extraurl"/></xsl:attribute>
93        Tests</a></li>
94        <li><a>
95        <xsl:attribute name="href">queryTests.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/>&#38;limit=200<xsl:value-of select="cdash/extraurl"/></xsl:attribute>
96        Tests Query</a></li>
97        <li><a>
98        <xsl:attribute name="href">userStatistics.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>
99        Statistics</a></li>
100        <li class="endsubmenu"><a>
101        <xsl:attribute name="href">viewMap.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#38;date=<xsl:value-of select="cdash/dashboard/date"/><xsl:value-of select="cdash/extraurl"/></xsl:attribute>
102        Sites</a></li>
103        </ul>
104        </li>
105        </xsl:otherwise>
106        </xsl:choose>
107        <li><a id="cal" href="#">Calendar</a>
108        <span id="date_now" style="display:none;"><xsl:value-of select="cdash/dashboard/date"/></span>
109        </li>
110
111        <xsl:if test="string-length(cdash/menu/noprevious)=0">
112        <li>
113        <a>
114        <xsl:attribute name="href">
115        <xsl:choose>
116          <xsl:when test="string-length(cdash/menu/previous)>0">
117            <xsl:value-of select="cdash/menu/previous"/>
118          </xsl:when>
119          <xsl:otherwise>
120          index.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#x26;date=<xsl:value-of select="cdash/dashboard/previousdate"/><xsl:value-of select="cdash/extraurl"/>
121          </xsl:otherwise>
122        </xsl:choose>
123        </xsl:attribute>
124          Previous
125          </a></li>
126        </xsl:if>
127
128        <li><a><xsl:attribute name="href">
129        <xsl:choose>
130          <xsl:when test="string-length(cdash/menu/current)>0">
131            <xsl:value-of select="cdash/menu/current"/>
132          </xsl:when>
133          <xsl:otherwise>
134          index.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/><xsl:value-of select="cdash/extraurl"/>
135          </xsl:otherwise>
136        </xsl:choose>
137        </xsl:attribute>
138            Current
139            </a></li>
140
141        <xsl:if test="string-length(cdash/menu/nonext)=0">
142        <li><a>
143        <xsl:attribute name="href">
144        <xsl:choose>
145          <xsl:when test="string-length(cdash/menu/next)>0">
146            <xsl:value-of select="cdash/menu/next"/>
147          </xsl:when>
148          <xsl:otherwise>
149          index.php?project=<xsl:value-of select="cdash/dashboard/projectname_encoded"/>&#x26;date=<xsl:value-of select="cdash/dashboard/nextdate"/><xsl:value-of select="cdash/extraurl"/>
150          </xsl:otherwise>
151        </xsl:choose>
152        </xsl:attribute>
153              Next
154              </a></li>
155        </xsl:if>
156
157        <li>
158        <a href="#">Project</a><ul>
159        <li><a><xsl:attribute name="href"><xsl:value-of select="cdash/dashboard/home"/> </xsl:attribute>Home</a></li>
160        <li><a><xsl:attribute name="href"><xsl:value-of select="cdash/dashboard/documentation"/> </xsl:attribute>Documentation</a></li>
161        <li><a><xsl:attribute name="href"><xsl:value-of select="cdash/dashboard/svn"/> </xsl:attribute>Repository</a></li>
162
163        <li>
164          <xsl:if test="string-length(cdash/user/projectrole)>0">
165            <xsl:attribute name="class">endsubmenu</xsl:attribute>
166          </xsl:if>
167          <a><xsl:attribute name="href"><xsl:value-of select="cdash/dashboard/bugtracker"/> </xsl:attribute>Bug Tracker</a>
168        </li>
169
170       <xsl:if test="string-length(cdash/user/projectrole)=0">
171          <li class="endsubmenu"><a><xsl:attribute name="href">subscribeProject.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/> </xsl:attribute>Subscribe</a></li>
172        </xsl:if>
173
174        </ul>
175        </li>
176        <xsl:if test="cdash/user/admin=1">
177        <li id="admin">
178        <a href="#">Settings</a><ul>
179        <li><a><xsl:attribute name="href">createProject.php?edit=1&#x26;projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>Project</a></li>
180        <li><a><xsl:attribute name="href">manageProjectRoles.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>Users</a></li>
181        <li><a><xsl:attribute name="href">manageBuildGroup.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>Groups</a></li>
182        <li><a><xsl:attribute name="href">manageCoverage.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>Coverage</a></li>
183        <li><a><xsl:attribute name="href">manageBanner.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>Banner</a></li>
184        <li><a><xsl:attribute name="href">manageMeasurements.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>Measurements</a></li>
185        <li class="endsubmenu"><a><xsl:attribute name="href">manageSubproject.php?projectid=<xsl:value-of select="cdash/dashboard/projectid"/></xsl:attribute>SubProjects</a></li>
186        </ul>
187        </li>
188        </xsl:if>
189
190       </ul>
191    </div>
192 </div>
193
194</div>
195
196
197<input type="hidden" id="projectname">
198 <xsl:attribute name="value"><xsl:value-of select="cdash/dashboard/projectname_encoded"/>
199 </xsl:attribute>
200 </input>
201
202 <input type="hidden" id="projectid">
203 <xsl:attribute name="value"><xsl:value-of select="cdash/dashboard/projectid"/>
204 </xsl:attribute>
205 </input>
206
207<div id="calendar" class="ui-datepicker-calendar" ></div>
208
209
210
211
212</xsl:template>
213
214</xsl:stylesheet>
215