Files
maven-plugins/xdoc/src/plugin-resources/navigation.jelly
T

104 lines
5.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<j:whitespace
xmlns:j="jelly:core"
xmlns:util="jelly:util"
xmlns="dummy"
trim="true">
<project>
<body>
<j:if test="${includeProjectDocumentation.equals('yes')}">
<menu key="navigation.menu.project_documentation"
bundle="plugin-resources.templates.templates"
name="Project Documentation">
<item key="navigation.menu.item.about"
bundle="plugin-resources.templates.templates"
name="About ${pom.name}" href="/index.html" />
<!-- Only display a "Downloads" menu link if the
maven.xdoc.distributionUrl has been defined -->
<j:if test="${context.getVariable('maven.xdoc.distributionUrl') != null and context.getVariable('maven.xdoc.distributionUrl') != ''}">
<item key="navigation.menu.item.downloads"
bundle="plugin-resources.templates.templates"
name="Downloads" href="/downloads.html" />
</j:if>
<item key="navigation.menu.item.project_info"
bundle="plugin-resources.templates.templates"
name="Project Info" href="/project-info.html" collapse="true">
<item key="navigation.menu.item.mailing_lists"
bundle="plugin-resources.templates.templates"
name="Mailing Lists" href="/mail-lists.html" />
<item key="navigation.menu.item.project_team"
bundle="plugin-resources.templates.templates"
name="Project Team" href="/team-list.html" />
<item key="navigation.menu.item.dependencies"
bundle="plugin-resources.templates.templates"
name="Dependencies" href="/dependencies.html" />
<j:set var="repository" value="${pom.repository}" />
<j:if test="${!empty(repository)}">
<item key="navigation.menu.item.source_repository"
bundle="plugin-resources.templates.templates"
name="Source Repository" href="/scm-usage.html" />
</j:if>
<j:set var="url"
value="${pom.issueTrackingUrl}" />
<j:if test="${!empty(url)}">
<item key="navigation.menu.item.issue_tracking"
bundle="plugin-resources.templates.templates"
name="Issue Tracking" href="/issue-tracking.html" />
</j:if>
</item>
<item key="navigation.menu.item.project_reports"
bundle="plugin-resources.templates.templates"
name="Project Reports" href="/maven-reports.html" collapse="true">
<j:forEach var="report" items="${reports}">
<j:set var="link" value="${report.link}" />
<j:set var="externalLink" value="${report.externalLink}" />
<j:if test="${!empty(link)}">
<j:set var="fileSuffix" value="${report.fileSuffix}" />
<j:if test="${fileSuffix == null}">
<j:set var="fileSuffix" value=".html" />
</j:if>
<item name="${report.name}"
href="/${link}${fileSuffix}"
target="${report.target}"
img="${report.image}"/>
</j:if>
<j:if test="${empty(link) and !empty(externalLink)}">
<item name="${report.name}"
href="${externalLink}"
target="${report.target}"
img="${report.image}"/>
</j:if>
</j:forEach>
</item>
<item key="navigation.menu.item.development_process"
bundle="plugin-resources.templates.templates"
name="Development Process" href="/development-process.html" />
</menu>
</j:if>
</body>
</project>
</j:whitespace>