]> source.dussan.org Git - archiva.git/blob
0a25e92826ceff49b823c8d5d3b7adb03fb0e1c5
[archiva.git] /
1 <%--
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
9   ~
10   ~   http://www.apache.org/licenses/LICENSE-2.0
11   ~
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
17   ~ under the License.
18   --%>
19
20 <%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
21 <%@ taglib prefix="page"      uri="http://www.opensymphony.com/sitemesh/page" %>
22 <%@ taglib prefix="s"         uri="/struts-tags" %>
23 <%@ taglib prefix="c"         uri="http://java.sun.com/jsp/jstl/core" %>
24 <%@ taglib prefix="redback"   uri="http://plexus.codehaus.org/redback/taglib-1.0"  %>
25 <%@ taglib prefix="my"        tagdir="/WEB-INF/tags" %>
26 <%@ taglib prefix="archiva"   uri="http://archiva.apache.org" %>
27
28 <page:applyDecorator name="default">
29
30 <html>
31 <head>
32   <title>Browse Repository</title>
33   <s:head/>
34 </head>
35
36 <body>
37
38 <s:set name="model" value="model"/>
39 <c:choose>
40   <c:when test="${model.packaging == 'maven-plugin'}">
41     <c:url var="imageUrl" value="/images/mavenplugin.gif"/>
42     <c:set var="packageName">Maven Plugin</c:set>
43   </c:when>
44   <c:when test="${model.packaging == 'pom'}">
45     <c:url var="imageUrl" value="/images/pom.gif"/>
46     <c:set var="packageName">POM</c:set>
47   </c:when>
48   <%-- These types aren't usually set in the POM yet, so we fudge them for the well known ones --%>
49   <c:when test="${model.packaging == 'maven-archetype' or model.groupId == 'org.apache.maven.archetypes'}">
50     <c:url var="imageUrl" value="/images/archetype.gif"/>
51     <c:set var="packageName">Maven Archetype</c:set>
52   </c:when>
53   <c:when test="${model.packaging == 'maven-skin' or model.groupId == 'org.apache.maven.skins'}">
54     <c:url var="imageUrl" value="/images/skin.gif"/>
55     <c:set var="packageName">Maven Skin</c:set>
56   </c:when>
57   <%-- Must be last so that the above get picked up if possible --%>
58   <c:when test="${model.packaging == 'jar'}">
59     <c:url var="imageUrl" value="/images/jar.gif"/>
60     <c:set var="packageName">JAR</c:set>
61   </c:when>
62   <c:otherwise>
63     <c:url var="imageUrl" value="/images/other.gif"/>
64     <c:set var="packageName"></c:set>
65   </c:otherwise>
66 </c:choose>
67 <img src="${imageUrl}" width="66" height="66" alt="${packageName}" title="${packageName}" style="float: left"/>
68
69 <h1>
70   <c:choose>
71     <c:when test="${empty (model.name)}">
72       ${model.artifactId}
73     </c:when>
74     <c:otherwise>
75       ${model.name}
76     </c:otherwise>
77   </c:choose>
78 </h1>
79
80 <div id="contentArea">
81   <div id="tabs">
82     <span>
83       <c:set var="url">
84         <s:url action="showArtifact">
85           <s:param name="groupId" value="%{groupId}"/>
86           <s:param name="artifactId" value="%{artifactId}"/>
87           <s:param name="version" value="%{version}"/>
88         </s:url>
89       </c:set>
90       <my:currentWWUrl url="${url}">Info</my:currentWWUrl>
91       <c:set var="url">
92         <s:url action="showArtifactDependencies">
93           <s:param name="groupId" value="%{groupId}"/>
94           <s:param name="artifactId" value="%{artifactId}"/>
95           <s:param name="version" value="%{version}"/>
96         </s:url>
97       </c:set>
98       <my:currentWWUrl url="${url}">Dependencies</my:currentWWUrl>
99       <c:set var="url">
100         <s:url action="showArtifactDependencyTree">
101           <s:param name="groupId" value="%{groupId}"/>
102           <s:param name="artifactId" value="%{artifactId}"/>
103           <s:param name="version" value="%{version}"/>
104         </s:url>
105       </c:set>
106       <my:currentWWUrl url="${url}">Dependency Tree</my:currentWWUrl>
107       <c:set var="url">
108         <s:url action="showArtifactDependees">
109           <s:param name="groupId" value="%{groupId}"/>
110           <s:param name="artifactId" value="%{artifactId}"/>
111           <s:param name="version" value="%{version}"/>
112         </s:url>
113       </c:set>
114       <my:currentWWUrl url="${url}">Used By</my:currentWWUrl>
115       <c:set var="url">
116         <s:url action="showArtifactMailingLists">
117           <s:param name="groupId" value="%{groupId}"/>
118           <s:param name="artifactId" value="%{artifactId}"/>
119           <s:param name="version" value="%{version}"/>
120         </s:url>
121       </c:set>
122       <my:currentWWUrl url="${url}">Mailing Lists</my:currentWWUrl>
123       <%-- POSTPONED to 1.0-alpha-2
124       <redback:ifAnyAuthorized permissions="archiva-access-reports">
125         <c:set var="url">
126         <s:url action="showArtifactReports">
127           <s:param name="groupId" value="%{groupId}"/>
128           <s:param name="artifactId" value="%{artifactId}"/>
129           <s:param name="version" value="%{version}"/>
130         </s:url>
131       </c:set>
132       <my:currentWWUrl url="${url}">Reports</my:currentWWUrl>
133       </redback:ifAnyAuthorized>
134         --%>
135       
136     </span>
137   </div>
138
139 <div class="sidebar3">
140   <archiva:downloadArtifact groupId="${groupId}" artifactId="${artifactId}" version="${model.version}" />
141 </div>
142   
143   <decorator:body />
144 </div>
145
146 </body>
147 </html>
148
149 </page:applyDecorator>