]> source.dussan.org Git - archiva.git/blob
d1509266529bbd85d28f4ee226e51a04f5db8022
[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="ww" uri="/webwork" %>
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
22 <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
23
24 <p>
25   <archiva:groupIdLink var="${model.groupId}" includeTop="true" />
26   
27   <c:set var="url">
28     <ww:url action="browseArtifact" namespace="/">
29       <ww:param name="groupId" value="%{'${model.groupId}'}"/>
30       <ww:param name="artifactId" value="%{'${model.artifactId}'}"/>
31     </ww:url>
32   </c:set>
33   <a href="${url}">${model.artifactId}</a> /
34   <strong>${version}</strong>
35
36   <%-- TODO: new versions?
37     (<strong class="statusFailed">Newer version available:</strong>
38     <a href="artifact.html">2.0.3</a>)
39   --%>
40 </p>
41
42 <c:if test="${!empty (model.description)}">
43   <blockquote>${model.description}</blockquote>
44 </c:if>
45
46 <table class="infoTable">
47   <tr>
48     <th>Repository</th>
49     <td>${repositoryId}</td>
50   </tr>
51   <tr>
52     <th>Group ID</th>
53     <td>${model.groupId}</td>
54   </tr>
55   <tr>
56     <th>Artifact ID</th>
57     <td>${model.artifactId}</td>
58   </tr>
59   <tr>
60     <th>Version</th>
61     <td>${model.version}</td>
62   </tr>
63   <tr>
64     <th>Packaging</th>
65     <td><code>${model.packaging}</code></td>
66   </tr>
67   <%-- TODO: derivatives
68     <tr>
69       <th>Derivatives</th>
70       <td>
71         <a href="#">Source</a>
72         |
73         <a href="#">Javadoc</a>
74       </td>
75     </tr>
76   --%>
77   <c:if test="${model.parentProject != null}">
78     <tr>
79       <th>Parent</th>
80       <td>
81           ${model.parentProject.groupId} ${model.parentProject.artifactId} ${model.parentProject.version}
82         <c:set var="url">
83           <ww:url action="showArtifact" namespace="/">
84             <ww:param name="groupId" value="%{'${model.parentProject.groupId}'}"/>
85             <ww:param name="artifactId" value="%{'${model.parentProject.artifactId}'}"/>
86             <ww:param name="version" value="%{'${model.parentProject.version}'}"/>
87           </ww:url>
88         </c:set>
89         (<a href="${url}">View</a>)
90       </td>
91     </tr>
92   </c:if>
93   <%-- TODO: deployment timestamp
94     <tr>
95       <th>Deployment Date</th>
96       <td>
97         15 Jan 2006, 20:38:00 +1000
98       </td>
99     </tr>
100   --%>
101   <%-- TODO: origin
102     <tr>
103       <th>Origin</th>
104       <td>
105         <a href="TODO">Apache Repository</a>
106       </td>
107     </tr>
108   --%>
109 </table>
110
111 <c:if test="${model.packaging != 'pom'}">
112   <h2>POM Dependency Snippet</h2>
113 <pre class="pom">
114     &lt;dependency>
115       &lt;groupId>${model.groupId}&lt;/groupId>
116       &lt;artifactId>${model.artifactId}&lt;/artifactId>     
117       &lt;version>${version}&lt;/version><c:if test="${model.packaging != 'jar'}">
118       &lt;type>${model.packaging}&lt;/type></c:if>
119     &lt;/dependency>
120 </pre>
121 </c:if>
122
123 <c:if test="${!empty (model.url) || model.organization != null || !empty (model.licenses)
124     || model.issueManagement != null || model.ciManagement != null}">
125
126   <h2>Other Details</h2>
127   <table class="infoTable">
128     <c:if test="${!empty (model.url)}">
129       <tr>
130         <th>URL</th>
131         <td>
132           <a href="${model.url}">${model.url}</a>
133         </td>
134       </tr>
135     </c:if>
136     <c:if test="${model.organization != null}">
137       <tr>
138         <th>Organisation</th>
139         <td>
140           <c:choose>
141             <c:when test="${model.organization != null}">
142               <a href="${model.organization.url}">${model.organization.name}</a>
143             </c:when>
144             <c:otherwise>
145               ${model.organization.name}
146             </c:otherwise>
147           </c:choose>
148         </td>
149       </tr>
150     </c:if>
151     <c:if test="${!empty (model.licenses)}">
152       <c:forEach items="${model.licenses}" var="license">
153         <tr>
154           <th>License</th>
155           <td>
156             <c:choose>
157               <c:when test="${!empty (license.url)}">
158                 <a href="${license.url}">${license.name}</a>
159               </c:when>
160               <c:otherwise>
161                 ${license.name}
162               </c:otherwise>
163             </c:choose>
164           </td>
165         </tr>
166       </c:forEach>
167     </c:if>
168     <c:if test="${model.issueManagement != null}">
169       <tr>
170         <th>Issue Tracker</th>
171         <td>
172           <c:choose>
173             <c:when test="${!empty (model.issueManagement.url)}">
174               <a href="${model.issueManagement.url}">${model.issueManagement.system}</a>
175             </c:when>
176             <c:otherwise>
177               ${model.issueManagement.system}
178             </c:otherwise>
179           </c:choose>
180         </td>
181       </tr>
182     </c:if>
183     <c:if test="${model.ciManagement != null}">
184       <tr>
185         <th>Continuous Integration</th>
186         <td>
187           <c:choose>
188             <c:when test="${!empty (model.ciManagement.url)}">
189               <a href="${model.ciManagement.url}">${model.ciManagement.system}</a>
190             </c:when>
191             <c:otherwise>
192               ${model.ciManagement.system}
193             </c:otherwise>
194           </c:choose>
195         </td>
196       </tr>
197     </c:if>
198   </table>
199 </c:if>
200
201 <c:if test="${model.scm != null}">
202   <h2>SCM</h2>
203   <table class="infoTable">
204     <c:if test="${!empty (model.scm.connection)}">
205       <tr>
206         <th>Connection</th>
207         <td>
208           <code>${model.scm.connection}</code>
209         </td>
210       </tr>
211     </c:if>
212     <c:if test="${!empty (model.scm.developerConnection)}">
213       <tr>
214         <th>Dev. Connection</th>
215         <td>
216           <code>${model.scm.developerConnection}</code>
217         </td>
218       </tr>
219     </c:if>
220     <c:if test="${!empty (model.scm.url)}">
221       <tr>
222         <th>Viewer</th>
223         <td>
224           <a href="${model.scm.url}">${model.scm.url}</a>
225         </td>
226       </tr>
227     </c:if>
228   </table>
229 </c:if>
230