2 ~ Licensed to the Apache Software Foundation (ASF) under one
\r
3 ~ or more contributor license agreements. See the NOTICE file
\r
4 ~ distributed with this work for additional information
\r
5 ~ regarding copyright ownership. The ASF licenses this file
\r
6 ~ to you under the Apache License, Version 2.0 (the
\r
7 ~ "License"); you may not use this file except in compliance
\r
8 ~ with the License. You may obtain a copy of the License at
\r
10 ~ http://www.apache.org/licenses/LICENSE-2.0
\r
12 ~ Unless required by applicable law or agreed to in writing,
\r
13 ~ software distributed under the License is distributed on an
\r
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
\r
15 ~ KIND, either express or implied. See the License for the
\r
16 ~ specific language governing permissions and limitations
\r
17 ~ under the License.
\r
20 <%@ taglib prefix="ww" uri="/webwork" %>
\r
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
\r
22 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
\r
23 <%@ taglib prefix="archiva" uri="http://archiva.apache.org" %>
\r
27 <title>Administration - Legacy support</title>
\r
33 <h1>Administration - Legacy Artifact Path Resolution</h1>
\r
35 <div id="contentArea">
\r
41 <div class="controls">
\r
42 <redback:ifAuthorized permission="archiva-manage-configuration">
\r
43 <ww:url id="addLegacyArtifactPathUrl" action="addLegacyArtifactPath"/>
\r
44 <ww:a href="%{addLegacyArtifactPathUrl}">
\r
45 <img src="<c:url value="/images/icons/create.png" />" alt="" width="16" height="16"/>
\r
48 </redback:ifAuthorized>
\r
50 <h2>Path Mappings</h2>
\r
53 <c:when test="${empty (legacyArtifactPaths)}">
\r
55 <p><strong>There are no legacy artifact paths configured yet.</strong></p>
\r
58 <%-- Display the paths. --%>
\r
60 <c:forEach items="${legacyArtifactPaths}" var="legacyArtifactPath" varStatus="i">
\r
62 <c:when test='${(i.index)%2 eq 0}'>
\r
63 <c:set var="rowColor" value="dark" scope="page"/>
\r
66 <c:set var="rowColor" value="lite" scope="page"/>
\r
70 <div class="legacyArtifactPath ${rowColor}">
\r
72 <div class="controls">
\r
73 <%-- TODO: make some icons --%>
\r
74 <redback:ifAnyAuthorized permissions="archiva-manage-configuration">
\r
75 <ww:url id="deleteLegacyArtifactPath" action="deleteLegacyArtifactPath">
\r
76 <ww:param name="path" value="%{'${legacyArtifactPath.path}'}"/>
\r
78 <ww:a href="%{deleteLegacyArtifactPath}">
\r
79 <img src="<c:url value="/images/icons/delete.gif" />" alt="" width="16" height="16"/>
\r
82 </redback:ifAnyAuthorized>
\r
85 <table class="infoTable">
\r
89 <code>${legacyArtifactPath.path}</code>
\r
95 <code>${legacyArtifactPath.artifact}</code>
\r