diff options
Diffstat (limited to 'maven-repository-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp')
-rw-r--r-- | maven-repository-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp | 52 |
1 files changed, 36 insertions, 16 deletions
diff --git a/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp b/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp index bf950fd65..a07fe5948 100644 --- a/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp +++ b/maven-repository-webapp/src/main/webapp/WEB-INF/jsp/browse.jsp @@ -1,3 +1,19 @@ +<%--
+ ~ 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" %>
<html>
@@ -7,24 +23,24 @@ <body>
<h3><a href="<ww:url value="browse!edit.action"><ww:param name="idx" value="0"/></ww:url>">basedir</a> /
- <ww:set name="previousFolder" value="''"/>
- <ww:set name="counter" value="0"/>
+ <ww:set name="previousFolder" value="''" />
+ <ww:set name="counter" value="0" />
<ww:if test="folder != ''">
- <ww:set name="folderHeader" value="folder.split('/')"/>
+ <ww:set name="folderHeader" value="folder.split('/')" />
<ww:iterator value="#folderHeader">
- <ww:set name="counter" value="#counter + 1"/>
+ <ww:set name="counter" value="#counter + 1" />
<ww:if test="#previousFolder == ''">
- <ww:set name="previousFolder" value="top"/>
+ <ww:set name="previousFolder" value="top" />
</ww:if>
<ww:else>
- <ww:set name="previousFolder" value="#previousFolder + '/' + top"/>
+ <ww:set name="previousFolder" value="#previousFolder + '/' + top" />
</ww:else>
<ww:if test="idx > (#counter + 1)"><a href="<ww:url value="browse!edit.action"><ww:param name="idx"><ww:property
- value="#counter"/></ww:param><ww:param name="folder"></ww:param></ww:url>"></ww:if><ww:property/></a> /
+ value="#counter" /></ww:param><ww:param name="folder"></ww:param></ww:url>"></ww:if><ww:property /></a> /
</ww:iterator>
</ww:if>
</h3>
-<br/>
+<br />
<ww:set name="previousFolder" value="'the previous folder'"/>
<ww:set name="in" value="idx" scope="page"/>
@@ -33,14 +49,18 @@ <ww:if test="idx == 1 || (folder != '' and #groupName.startsWith(folder))">
<%
+
int ctr = 1;
+
%>
<ww:set name="groupFolder" value="#groupName.split('/')"/>
<ww:iterator value="#groupFolder">
<%
+
if (ctr == ((Integer)pageContext.getAttribute("in")).intValue()) {
+
%>
<ww:if test="top != #previousFolder">
<ww:set name="previousFolder" value="top"/>
@@ -57,32 +77,32 @@ if (ctr == ((Integer)pageContext.getAttribute("in")).intValue()) { </ww:iterator>
<ww:if test="folder != ''">
- <ww:set name="previousFolder" value="''"/>
- <ww:set name="artifactList" value="artifactMap.get(folder)"/>
+ <ww:set name="previousFolder" value="''" />
+ <ww:set name="artifactList" value="artifactMap.get(folder)" />
<ww:iterator value="#artifactList">
<table border="1">
<tr align="left">
<th>Group ID</th>
- <td><ww:property value="groupId"/></td>
+ <td><ww:property value="groupId" /></td>
</tr>
<tr align="left">
<th>Artifact ID</th>
- <td><ww:property value="artifactId"/></td>
+ <td><ww:property value="artifactId" /></td>
</tr>
<tr align="left">
<th>Version</th>
- <td><ww:property value="version"/></td>
+ <td><ww:property value="version" /></td>
</tr>
<tr align="left">
<th>Derivatives</th>
- <td><ww:property value="groupId"/></td>
+ <td><ww:property value="groupId" /></td>
</tr>
<tr align="left">
<th>Parent</th>
- <td><ww:property value="folder"/></td>
+ <td><ww:property value="folder" /></td>
</tr>
</table>
- <br/>
+ <br />
</ww:iterator>
</ww:if>
</body>
|