o Add ability to use images in navigation bar
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
795506b308
commit
c1a85aecdd
2 files changed
+11
-5
No files matched your search
+5
-1
@@ -163,8 +163,12 @@
|
||||
@link
|
||||
@relativePath
|
||||
@name
|
||||
@img
|
||||
-->
|
||||
<a href="${pathTool.calculateLink(link,relativePath)}">${name}</a>
|
||||
<a href="${pathTool.calculateLink(link,relativePath)}">
|
||||
<j:if test="${empty(img)}">${name}</j:if>
|
||||
<j:if test="${!empty(img)}"><img style="border: 1px" src="${img}" title="${name}" alt="${name}"/></j:if>
|
||||
</a>
|
||||
</define:tag>
|
||||
|
||||
<define:tag name="text-xdoc">
|
||||
|
||||
@@ -146,9 +146,9 @@
|
||||
</j:if>
|
||||
|
||||
<x:if select="$nav">
|
||||
<jsl:applyTemplates select="$nav/body/menu"/>
|
||||
<jsl:applyTemplates select="$nav/body/menu[not(@type) | @type='header']"/>
|
||||
</x:if>
|
||||
|
||||
|
||||
<!-- Standard Maven Navigation -->
|
||||
<j:set var="fileName">${file}</j:set>
|
||||
|
||||
@@ -285,6 +285,7 @@
|
||||
</j:if>
|
||||
</div>
|
||||
</j:if>
|
||||
|
||||
<j:if test="${date == 'navigation-bottom'}">
|
||||
<div>
|
||||
<small>Last published: ${build.date}</small>
|
||||
@@ -358,14 +359,15 @@
|
||||
<x:set var="item" select="."/>
|
||||
<j:set var="_name"><x:expr select="@name"/></j:set>
|
||||
<j:set var="_link"><x:expr select="@href"/></j:set>
|
||||
<j:set var="_img"><x:expr select="@img"/></j:set>
|
||||
|
||||
<div>
|
||||
<small>
|
||||
<j:if test="${navbean.isSelected(item.get(0))}">
|
||||
<b><doc:itemLink name="${_name}" link="${_link}"/></b>
|
||||
<b><doc:itemLink name="${_name}" link="${_link}" img="${_img}"/></b>
|
||||
</j:if>
|
||||
<j:if test="${!navbean.isSelected(item.get(0))}">
|
||||
<doc:itemLink name="${_name}" link="${_link}"/>
|
||||
<doc:itemLink name="${_name}" link="${_link}" img="${_img}"/>
|
||||
</j:if>
|
||||
</small>
|
||||
<j:if test="${!navbean.isCollapsed(item.get(0))}">
|
||||
|
||||
Reference in new issue
Block a user