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