blob: 2380622ee5b5d2461c53c3212aac8a1a524f9e73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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 prefix="ww" uri="/webwork" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
<%@ taglib prefix="archiva" uri="http://maven.apache.org/archiva" %>
<html>
<head>
<title>Administration - Legacy support</title>
<ww:head/>
</head>
<body>
<h1>Administration - Legacy Artifact Path Resolution</h1>
<div id="contentArea">
<ww:actionerror/>
<ww:actionmessage/>
<div class="admin">
<div class="controls">
<redback:ifAuthorized permission="archiva-manage-configuration">
<ww:url id="addLegacyArtifactPathUrl" action="addLegacyArtifactPath"/>
<ww:a href="%{addLegacyArtifactPathUrl}">
<img src="<c:url value="/images/icons/create.png" />" alt="" width="16" height="16"/>
Add
</ww:a>
</redback:ifAuthorized>
</div>
<h2>Path Mappings</h2>
<c:choose>
<c:when test="${empty(legacyArtifactPaths)}">
<%-- No paths. --%>
<p><strong>There are no legacy artifact paths configured yet.</strong></p>
</c:when>
<c:otherwise>
<%-- Display the paths. --%>
<c:forEach items="${legacyArtifactPaths}" var="legacyArtifactPath" varStatus="i">
<c:choose>
<c:when test='${(i.index)%2 eq 0}'>
<c:set var="rowColor" value="dark" scope="page"/>
</c:when>
<c:otherwise>
<c:set var="rowColor" value="lite" scope="page"/>
</c:otherwise>
</c:choose>
<div class="legacyArtifactPath ${rowColor}">
<div class="controls">
<%-- TODO: make some icons --%>
<redback:ifAnyAuthorized permissions="archiva-manage-configuration">
<ww:url id="deleteLegacyArtifactPath" action="deleteLegacyArtifactPath">
<ww:param name="path" value="%{'${legacyArtifactPath.path}'}"/>
</ww:url>
<ww:a href="%{deleteLegacyArtifactPath}">
<img src="<c:url value="/images/icons/delete.gif" />" alt="" width="16" height="16"/>
Delete
</ww:a>
</redback:ifAnyAuthorized>
</div>
<table class="infoTable">
<tr>
<th>Path</th>
<td>
<code>${legacyArtifactPath.path}</code>
</td>
</tr>
<tr>
<th>Artifact</th>
<td>
<code>${legacyArtifactPath.artifact}</code>
</td>
</tr>
</table>
</div>
</c:forEach>
</c:otherwise>
</c:choose>
</div>
</div>
</body>
</html>
|