Display the breadcrumbs hierarchy in the title of the page

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@384074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2006-03-08 01:01:04 +00:00
1 parent 34c5af38ac
commit 1013578819
2 files changed
+14 -20

No files matched your search

+13 -19
View File
@@ -38,7 +38,10 @@
<j:catch>
<j:new var="siteHost" className="java.net.URL"><j:arg value="${pom.url}"/></j:new>
</j:catch>
<j:set var="breadcrumbsUsed" value=""/>
<x:if select="$nav/body/breadcrumbs">
<j:set var="breadcrumbsUsed" value="'true'"/>
</x:if>
<j:useBean var="navbean" class="org.apache.maven.NavBean"/>
<j:set var="location" value="${outFile.substring(destdir.length())}"/>
<util:replace var="location" oldChar="\" newChar="/" value="${location}"/>
@@ -113,19 +116,15 @@
</j:if>
</j:if>
<j:set var="titleSeparator" value=" - "/>
<x:if select="$nav/title">
<title>
${_navTitle}${titleSeparator}${_docTitle}
</title>
</x:if>
<x:if select="not($nav/title)">
<title>
${pom.name}${titleSeparator}${_docTitle}
</title>
</x:if>
<j:set var="titleSeparator" value=" &gt; "/>
<title>
<j:if test="${!empty( breadcrumbsUsed )}">
<x:forEach var="item" select="$nav/body/breadcrumbs/item"><x:expr select="@name" />${titleSeparator}</x:forEach>
</j:if>
<x:if select="$nav/title">${_navTitle}</x:if><x:if select="not($nav/title)">${pom.name}</x:if>${titleSeparator}${_docTitle}
</title>
<j:set var="themeUrl" value="${maven.xdoc.theme.url}"/>
<util:file var="projectCssFile" name="${maven.docs.src}/style/project.css"/>
@@ -268,10 +267,6 @@
<j:set var="version" value=""/>
</j:when>
</j:choose>
<j:set var="breadcrumbsUsed" value=""/>
<x:if select="$nav/body/breadcrumbs">
<j:set var="breadcrumbsUsed" value="'true'"/>
</x:if>
<div class="xleft">
<j:if test="${empty(breadcrumbsUsed)}">
@@ -288,7 +283,7 @@
<j:if test="${!empty( breadcrumbsUsed )}">
<jsl:applyTemplates select="$nav/body/breadcrumbs" />
<a href="${home}"><x:if select="$nav/title">${_navTitle}</x:if><x:if select="not($nav/title)">${pom.name}</x:if></a>&#160;<span class="separator">&gt;</span>&#160;${_docTitle}
</j:if>
</j:if>
</div>
<j:set var="linksUsed" value=""/>
@@ -699,7 +694,6 @@
&#160;<span class="separator">&gt;</span>&#160;
</x:forEach>
</jsl:template>
<!-- Process a menu for the navigation bar -->
<jsl:template match="menu" trim="true">
<x:set var="_menuName" select="string(@name)"/>