2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
20 <%@ taglib prefix="ww" uri="/webwork" %>
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
22 <%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
23 <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
24 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
28 <title>Browse Repository</title>
34 <ww:set name="model" value="model"/>
36 <c:when test="${model.packaging == 'maven-plugin'}">
37 <c:url var="imageUrl" value="/images/mavenplugin.gif"/>
38 <c:set var="packageName">Maven Plugin</c:set>
40 <c:when test="${model.packaging == 'pom'}">
41 <c:url var="imageUrl" value="/images/pom.gif"/>
42 <c:set var="packageName">POM</c:set>
44 <%-- These types aren't usually set in the POM yet, so we fudge them for the well known ones --%>
45 <c:when test="${model.packaging == 'maven-archetype' or model.groupId == 'org.apache.maven.archetypes'}">
46 <c:url var="imageUrl" value="/images/archetype.gif"/>
47 <c:set var="packageName">Maven Archetype</c:set>
49 <c:when test="${model.packaging == 'maven-skin' or model.groupId == 'org.apache.maven.skins'}">
50 <c:url var="imageUrl" value="/images/skin.gif"/>
51 <c:set var="packageName">Maven Skin</c:set>
53 <%-- Must be last so that the above get picked up if possible --%>
54 <c:when test="${model.packaging == 'jar'}">
55 <c:url var="imageUrl" value="/images/jar.gif"/>
56 <c:set var="packageName">JAR</c:set>
59 <c:url var="imageUrl" value="/images/other.gif"/>
60 <c:set var="packageName"></c:set>
63 <img src="${imageUrl}" width="66" height="66" alt="${packageName}" title="${packageName}" style="float: left"/>
67 <c:when test="${empty (model.name)}">
76 <div id="contentArea">
80 <ww:url action="showArtifact">
81 <ww:param name="groupId" value="%{groupId}"/>
82 <ww:param name="artifactId" value="%{artifactId}"/>
83 <ww:param name="version" value="%{version}"/>
86 <my:currentWWUrl url="${url}">Info</my:currentWWUrl>
88 <ww:url action="showArtifactDependencies">
89 <ww:param name="groupId" value="%{groupId}"/>
90 <ww:param name="artifactId" value="%{artifactId}"/>
91 <ww:param name="version" value="%{version}"/>
94 <my:currentWWUrl url="${url}">Dependencies</my:currentWWUrl>
96 <ww:url action="showArtifactDependencyTree">
97 <ww:param name="groupId" value="%{groupId}"/>
98 <ww:param name="artifactId" value="%{artifactId}"/>
99 <ww:param name="version" value="%{version}"/>
102 <my:currentWWUrl url="${url}">Dependency Tree</my:currentWWUrl>
104 <ww:url action="showArtifactDependees">
105 <ww:param name="groupId" value="%{groupId}"/>
106 <ww:param name="artifactId" value="%{artifactId}"/>
107 <ww:param name="version" value="%{version}"/>
110 <my:currentWWUrl url="${url}">Used By</my:currentWWUrl>
112 <ww:url action="showArtifactMailingLists">
113 <ww:param name="groupId" value="%{groupId}"/>
114 <ww:param name="artifactId" value="%{artifactId}"/>
115 <ww:param name="version" value="%{version}"/>
118 <my:currentWWUrl url="${url}">Mailing Lists</my:currentWWUrl>
119 <%-- POSTPONED to 1.0-alpha-2
120 <redback:ifAnyAuthorized permissions="archiva-access-reports">
122 <ww:url action="showArtifactReports">
123 <ww:param name="groupId" value="%{groupId}"/>
124 <ww:param name="artifactId" value="%{artifactId}"/>
125 <ww:param name="version" value="%{version}"/>
128 <my:currentWWUrl url="${url}">Reports</my:currentWWUrl>
129 </redback:ifAnyAuthorized>
135 <div class="sidebar3">
136 <archiva:downloadArtifact groupId="${model.groupId}" artifactId="${model.artifactId}" version="${model.version}"/>
139 <%-- TODO: perhaps using ajax? --%>
140 <%-- TODO: panels? this is ugly as is --%>
143 <c:when test="${dependencies != null}">
144 <%@ include file="/WEB-INF/jsp/include/artifactDependencies.jspf" %>
146 <c:when test="${dependencyTree != null}">
147 <%@ include file="/WEB-INF/jsp/include/dependencyTree.jspf" %>
149 <c:when test="${dependees != null}">
150 <%@ include file="/WEB-INF/jsp/include/projectDependees.jspf" %>
152 <c:when test="${mailingLists != null}">
153 <%@ include file="/WEB-INF/jsp/include/mailingLists.jspf" %>
155 <c:when test="${reports != null}">
156 <%@ include file="/WEB-INF/jsp/include/artifactReports.jspf" %>
159 <%@ include file="/WEB-INF/jsp/include/artifactInfo.jspf" %>