forked from Kitware/CDash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
headerback.xsl
75 lines (67 loc) · 2.29 KB
/
headerback.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
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:output method="xml" doctype-public="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" encoding="UTF-8"/>
<xsl:include href="headscripts.xsl"/>
<xsl:include href="local/headscripts.xsl"/>
<xsl:template name="headerback">
<div id="header">
<div id="headertop">
<div id="topmenu">
<a href="index.php">All Dashboards</a>
<xsl:if test="cdash/user/id>0">
<a href="user.php?logout=1">Log Out</a>
</xsl:if>
<a><xsl:attribute name="href">user.php</xsl:attribute>
<xsl:choose>
<xsl:when test="cdash/user/id>0">My CDash</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose></a>
</div>
<div id="datetime">
<xsl:value-of select="cdash/dashboard/datetime"/>
</div>
<div id="feedicon" alt="RSS Feed" title="RSS Feed">
<xsl:if test="cdash/dashboard/projectpublic=1">
<a>
<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" />
</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="headername">
<xsl:value-of select="/cdash/menutitle"/>
<span id="subheadername">
<xsl:value-of select="/cdash/menusubtitle"/>
</span>
</div>
<div id="headermenu">
<ul id="navigation">
<li id="Back">
<a>
<xsl:attribute name="href"><xsl:value-of select="/cdash/backurl"/></xsl:attribute>
Back</a>
</li>
</ul>
</div>
</div>
</div>
</xsl:template>
</xsl:stylesheet>