render the navigation links correctly

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@423761 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-07-20 04:46:27 +00:00
parent a266f21ec1
commit 3ee307877c
2 changed files with 61 additions and 18 deletions

View File

@ -15,6 +15,9 @@
--%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
<html>
<head>
<title>Maven Repository Manager :: <decorator:title default="Maven Repository Manager" /></title>
@ -65,33 +68,39 @@
<ul>
<li class="none">
<a href="index.html">Search</a>
<my:currentWWUrl action="index" namespace="/">Search</my:currentWWUrl>
</li>
<%-- TODO
<li class="none">
<a href="#">Find Artifact</a>
</li>
<li class="none">
<a href="find-artifact.html">Find Artifact</a>
</li>
<li class="none">
<a href="browse.html">Browse</a>
<a href="#">Browse</a>
</li>
--%>
</ul>
<h5>Manage</h5>
<ul>
<%-- TODO
<li class="none">
<a href="reports.html">Reports</a>
<a href="#">Reports</a>
</li>
<li class="none">
<strong>Synchronisation</strong>
<a href="#">Synchronisation</a>
</li>
--%>
<li class="expanded">
<a href="#">Administration</a>
<ul>
<li class="none">
<a href="admin.html">Administration</a>
<my:currentWWUrl action="configure" namespace="/admin">Configuration</my:currentWWUrl>
</li>
</ul>
</li>
</ul>

View File

@ -0,0 +1,34 @@
<%--
~ Copyright 2005-2006 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.
--%>
<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ attribute name="action" required="true" %>
<%@ attribute name="namespace" required="true" %>
<ww:url id="currentUrl" />
<ww:url action="${action}" namespace="${namespace}" id="url" />
<c:choose>
<c:when test="${currentUrl == url}">
<strong>
<jsp:doBody />
</strong>
</c:when>
<c:otherwise>
<a href="${url}">
<jsp:doBody />
</a>
</c:otherwise>
</c:choose>