mirror of https://github.com/apache/archiva.git
[MRM-496] fix the edit page
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@575123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8f7502f4fd
commit
7b2e4063bf
|
@ -20,15 +20,15 @@
|
||||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
|
||||||
<c:url var="iconDeleteUrl" value="/images/icons/delete.gif" />
|
<c:url var="iconDeleteUrl" value="/images/icons/delete.gif"/>
|
||||||
<c:url var="iconCreateUrl" value="/images/icons/create.png" />
|
<c:url var="iconCreateUrl" value="/images/icons/create.png"/>
|
||||||
|
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${mode == 'edit'}">
|
<c:when test="${mode == 'edit'}">
|
||||||
<c:set var="addedit" value="Edit" />
|
<c:set var="addedit" value="Edit"/>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<c:set var="addedit" value="Add" />
|
<c:set var="addedit" value="Add"/>
|
||||||
</c:otherwise>
|
</c:otherwise>
|
||||||
</c:choose>
|
</c:choose>
|
||||||
|
|
||||||
|
@ -44,238 +44,241 @@
|
||||||
|
|
||||||
<div id="contentArea">
|
<div id="contentArea">
|
||||||
|
|
||||||
<ww:actionerror/>
|
<ww:actionerror/>
|
||||||
<ww:actionmessage/>
|
<ww:actionmessage/>
|
||||||
|
|
||||||
<ww:form name="saveProxyConnector" method="post" action="saveProxyConnector" namespace="/admin">
|
<ww:form name="saveProxyConnector" method="post" action="saveProxyConnector" namespace="/admin">
|
||||||
<ww:hidden name="mode"/>
|
<ww:hidden name="mode"/>
|
||||||
|
|
||||||
<input type="hidden" name="pattern"/>
|
<input type="hidden" name="pattern"/>
|
||||||
<ww:select name="connector.proxyId" list="proxyIdOptions" label="Network Proxy" required="true"/>
|
<ww:select name="connector.proxyId" list="proxyIdOptions" label="Network Proxy" required="true"/>
|
||||||
<ww:select name="connector.sourceRepoId" list="localRepoIdList"
|
<ww:select name="connector.sourceRepoId" list="managedRepoIdList"
|
||||||
label="Managed Repository" required="true"/>
|
label="Managed Repository" required="true"/>
|
||||||
<ww:select name="connector.targetRepoId" list="remoteRepoIdList"
|
<ww:select name="connector.targetRepoId" list="remoteRepoIdList"
|
||||||
label="Remote Repository" required="true" />
|
label="Remote Repository" required="true"/>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><label>Policies:</label>
|
<td valign="top"><label>Policies:</label>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<table>
|
<table>
|
||||||
<c:forEach items="${policyMap}" var="policy" varStatus="i">
|
<c:forEach items="${policyMap}" var="policy" varStatus="i">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<ww:label for="policy_${policy.key}" required="true"
|
<ww:label for="policy_${policy.key}" required="true"
|
||||||
theme="simple">${policy.key}:</ww:label>
|
theme="simple">${policy.key}:
|
||||||
</td>
|
</ww:label>
|
||||||
<td>
|
</td>
|
||||||
|
<td>
|
||||||
<ww:select name="connector.policies['${policy.key}']"
|
<ww:select name="connector.policies['${policy.key}']"
|
||||||
list="policyMap['${policy.key}'].options"
|
list="policyMap['${policy.key}'].options"
|
||||||
value="connector.policies['${policy.key}']"
|
value="connector.policies['${policy.key}']"
|
||||||
id="policy_${policy.key}"
|
id="policy_${policy.key}"
|
||||||
theme="simple"
|
theme="simple"
|
||||||
cssStyle="width: 10em" />
|
cssStyle="width: 10em"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
</td>
|
||||||
|
</tr>
|
||||||
<tr class="seperator">
|
|
||||||
<td valign="top">
|
<tr class="seperator">
|
||||||
<label for="propertiesEntry">Properties:</label>
|
<td valign="top">
|
||||||
</td>
|
<label for="propertiesEntry">Properties:</label>
|
||||||
<td>
|
</td>
|
||||||
<ww:textfield name="propertyKey" size="15" id="propertiesEntry" theme="simple"
|
<td>
|
||||||
onkeypress="submitenter(event, 'editProxyConnector!addProperty.action')" /> :
|
<ww:textfield name="propertyKey" size="15" id="propertiesEntry" theme="simple"
|
||||||
<ww:textfield name="propertyValue" size="15" id="propertiesValue" theme="simple"
|
onkeypress="submitenter(event, 'editProxyConnector!addProperty.action')"/>
|
||||||
onkeypress="submitenter(event, 'editProxyConnector!addProperty.action')"/>
|
:
|
||||||
<ww:submit name="action:editProxyConnector!addProperty" value="Add Property" theme="simple" />
|
<ww:textfield name="propertyValue" size="15" id="propertiesValue" theme="simple"
|
||||||
</td>
|
onkeypress="submitenter(event, 'editProxyConnector!addProperty.action')"/>
|
||||||
</tr>
|
<ww:submit name="action:editProxyConnector!addProperty" value="Add Property" theme="simple"/>
|
||||||
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td>
|
|
||||||
</td>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<c:choose>
|
</td>
|
||||||
<c:when test="${empty(connector.properties)}">
|
<td>
|
||||||
<i>No properties have been set.</i>
|
<c:choose>
|
||||||
</c:when>
|
<c:when test="${empty(connector.properties)}">
|
||||||
<c:otherwise>
|
<i>No properties have been set.</i>
|
||||||
<ww:url id="removePropertyUrl"
|
</c:when>
|
||||||
action="editProxyConnector"
|
<c:otherwise>
|
||||||
method="removeProperty" />
|
<ww:url id="removePropertyUrl"
|
||||||
<table>
|
action="editProxyConnector"
|
||||||
<c:forEach items="${connector.properties}" var="property" varStatus="i">
|
method="removeProperty"/>
|
||||||
<tr>
|
<table>
|
||||||
<td>
|
<c:forEach items="${connector.properties}" var="property" varStatus="i">
|
||||||
<ww:label for="property_${property.key}"
|
<tr>
|
||||||
theme="simple">${property.key}</ww:label>
|
<td>
|
||||||
</td>
|
<ww:label for="property_${property.key}"
|
||||||
<td>
|
theme="simple">${property.key}</ww:label>
|
||||||
<ww:textfield name="connector.properties['${property.key}']"
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:textfield name="connector.properties['${property.key}']"
|
||||||
size="15"
|
size="15"
|
||||||
id="property_${property.key}"
|
id="property_${property.key}"
|
||||||
theme="simple" />
|
theme="simple"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<ww:a href="#" title="Remove [${property.key}] Property"
|
<ww:a href="#" title="Remove [${property.key}] Property"
|
||||||
onclick="setAndSubmit('propertyKey', '${property.key}', '%{removePropertyUrl}')"
|
onclick="setAndSubmit('propertyKey', '${property.key}', '%{removePropertyUrl}')"
|
||||||
theme="simple">
|
theme="simple">
|
||||||
<img src="${iconDeleteUrl}" /></ww:a>
|
<img src="${iconDeleteUrl}"/></ww:a>
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:forEach>
|
|
||||||
</table>
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr class="seperator">
|
|
||||||
<td valign="top">
|
|
||||||
<label for="blackListEntry">Black List:</label>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ww:textfield name="blackListPattern" size="30" id="blackListEntry" theme="simple"
|
|
||||||
onkeypress="submitenter(event, 'editProxyConnector!addBlackListPattern.action')"/>
|
|
||||||
<ww:submit name="action:editProxyConnector!addBlackListPattern" value="Add Pattern" theme="simple" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ww:url id="removeBlackListPatternUrl"
|
|
||||||
action="editProxyConnector"
|
|
||||||
method="removeBlackListPattern" />
|
|
||||||
<c:choose>
|
|
||||||
<c:when test="${empty(connector.blackListPatterns)}">
|
|
||||||
<i>No black list patterns have been set.</i>
|
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
|
||||||
<table>
|
|
||||||
<c:forEach items="${connector.blackListPatterns}" var="pattern" varStatus="i">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<ww:hidden name="connector.blackListPatterns" value="${pattern}"/>
|
|
||||||
<code>"${pattern}"</code>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ww:a href="#" title="Remove [${pattern}] Pattern"
|
|
||||||
onclick="setAndSubmit('pattern', '${pattern}', '%{removeBlackListPatternUrl}')"
|
|
||||||
theme="simple">
|
|
||||||
<img src="${iconDeleteUrl}" /></ww:a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:forEach>
|
|
||||||
</table>
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr class="seperator">
|
|
||||||
<td valign="top">
|
|
||||||
<label for="whiteListEntry">White List:</label>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ww:textfield name="whiteListPattern" size="30" id="whiteListEntry" theme="simple"
|
|
||||||
onkeypress="submitenter(event, 'editProxyConnector!addWhiteListPattern.action')"/>
|
|
||||||
<ww:submit name="action:editProxyConnector!addWhiteListPattern" value="Add Pattern" theme="simple" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ww:url id="removeWhiteListPatternUrl"
|
|
||||||
action="editProxyConnector"
|
|
||||||
method="removeWhiteListPattern" />
|
|
||||||
<c:choose>
|
|
||||||
<c:when test="${empty(connector.whiteListPatterns)}">
|
|
||||||
<i>No white list patterns have been set.</i>
|
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
|
||||||
<table>
|
|
||||||
<c:forEach items="${connector.whiteListPatterns}" var="pattern" varStatus="i">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<ww:hidden name="connector.whiteListPatterns" value="${pattern}"/>
|
|
||||||
<code>"${pattern}"</code>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<ww:a href="#" title="Remove [${pattern}] Pattern"
|
|
||||||
onclick="setAndSubmit('pattern', '${pattern}', '%{removeWhiteListPatternUrl}')"
|
|
||||||
theme="simple">
|
|
||||||
<img src="${iconDeleteUrl}" /></ww:a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:forEach>
|
|
||||||
</table>
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
<ww:submit value="Save Proxy Connector"/>
|
</td>
|
||||||
</ww:form>
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</table>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<tr class="seperator">
|
||||||
<!--
|
<td valign="top">
|
||||||
document.getElementById("saveProxyConnector_proxyId").focus();
|
<label for="blackListEntry">Black List:</label>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:textfield name="blackListPattern" size="30" id="blackListEntry" theme="simple"
|
||||||
|
onkeypress="submitenter(event, 'editProxyConnector!addBlackListPattern.action')"/>
|
||||||
|
<ww:submit name="action:editProxyConnector!addBlackListPattern" value="Add Pattern" theme="simple"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
function setAndSubmit(id, value, action)
|
<tr>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:url id="removeBlackListPatternUrl"
|
||||||
|
action="editProxyConnector"
|
||||||
|
method="removeBlackListPattern"/>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${empty(connector.blackListPatterns)}">
|
||||||
|
<i>No black list patterns have been set.</i>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<table>
|
||||||
|
<c:forEach items="${connector.blackListPatterns}" var="pattern" varStatus="i">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<ww:hidden name="connector.blackListPatterns" value="${pattern}"/>
|
||||||
|
<code>"${pattern}"</code>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:a href="#" title="Remove [${pattern}] Pattern"
|
||||||
|
onclick="setAndSubmit('pattern', '${pattern}', '%{removeBlackListPatternUrl}')"
|
||||||
|
theme="simple">
|
||||||
|
<img src="${iconDeleteUrl}"/></ww:a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</table>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr class="seperator">
|
||||||
|
<td valign="top">
|
||||||
|
<label for="whiteListEntry">White List:</label>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:textfield name="whiteListPattern" size="30" id="whiteListEntry" theme="simple"
|
||||||
|
onkeypress="submitenter(event, 'editProxyConnector!addWhiteListPattern.action')"/>
|
||||||
|
<ww:submit name="action:editProxyConnector!addWhiteListPattern" value="Add Pattern" theme="simple"/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:url id="removeWhiteListPatternUrl"
|
||||||
|
action="editProxyConnector"
|
||||||
|
method="removeWhiteListPattern"/>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${empty(connector.whiteListPatterns)}">
|
||||||
|
<i>No white list patterns have been set.</i>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<table>
|
||||||
|
<c:forEach items="${connector.whiteListPatterns}" var="pattern" varStatus="i">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<ww:hidden name="connector.whiteListPatterns" value="${pattern}"/>
|
||||||
|
<code>"${pattern}"</code>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ww:a href="#" title="Remove [${pattern}] Pattern"
|
||||||
|
onclick="setAndSubmit('pattern', '${pattern}', '%{removeWhiteListPatternUrl}')"
|
||||||
|
theme="simple">
|
||||||
|
<img src="${iconDeleteUrl}"/></ww:a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:forEach>
|
||||||
|
</table>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
<ww:submit value="Save Proxy Connector"/>
|
||||||
|
</ww:form>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
document.getElementById("saveProxyConnector_proxyId").focus();
|
||||||
|
|
||||||
|
function setAndSubmit( id, value, action )
|
||||||
|
{
|
||||||
|
var f = document.forms['saveProxyConnector'];
|
||||||
|
|
||||||
|
f.action = action;
|
||||||
|
f.elements[id].value = value;
|
||||||
|
f.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
function submitForm( action )
|
||||||
|
{
|
||||||
|
var f = document.forms['saveProxyConnector'];
|
||||||
|
|
||||||
|
f.action = action;
|
||||||
|
f.submit();
|
||||||
|
}
|
||||||
|
|
||||||
|
function submitenter( e, action )
|
||||||
|
{
|
||||||
|
var keycode;
|
||||||
|
|
||||||
|
if ( window.event )
|
||||||
{
|
{
|
||||||
var f = document.forms['saveProxyConnector'];
|
keycode = window.event.keyCode;
|
||||||
|
}
|
||||||
f.action = action;
|
else if ( e )
|
||||||
f.elements[id].value = value;
|
{
|
||||||
f.submit();
|
keycode = e.which;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function submitForm( action )
|
if ( keycode == 13 )
|
||||||
{
|
{
|
||||||
var f = document.forms['saveProxyConnector'];
|
submitForm(action);
|
||||||
|
return false;
|
||||||
f.action = action;
|
|
||||||
f.submit();
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
function submitenter( e, action )
|
|
||||||
{
|
{
|
||||||
var keycode;
|
return true;
|
||||||
|
|
||||||
if (window.event)
|
|
||||||
{
|
|
||||||
keycode = window.event.keyCode;
|
|
||||||
}
|
|
||||||
else if (e)
|
|
||||||
{
|
|
||||||
keycode = e.which;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keycode == 13)
|
|
||||||
{
|
|
||||||
submitForm( action );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||||
<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
|
<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
|
||||||
<%@ taglib prefix="archiva" uri="http://maven.apache.org/archiva" %>
|
<%@ taglib prefix="archiva" uri="http://maven.apache.org/archiva" %>
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
|
@ -33,146 +33,151 @@
|
||||||
|
|
||||||
<h1>Administration - Proxy Connectors</h1>
|
<h1>Administration - Proxy Connectors</h1>
|
||||||
|
|
||||||
<c:url var="iconDeleteUrl" value="/images/icons/delete.gif" />
|
<c:url var="iconDeleteUrl" value="/images/icons/delete.gif"/>
|
||||||
<c:url var="iconEditUrl" value="/images/icons/edit.png" />
|
<c:url var="iconEditUrl" value="/images/icons/edit.png"/>
|
||||||
<c:url var="iconCreateUrl" value="/images/icons/create.png" />
|
<c:url var="iconCreateUrl" value="/images/icons/create.png"/>
|
||||||
|
|
||||||
<div id="contentArea">
|
<div id="contentArea">
|
||||||
|
|
||||||
<ww:actionerror />
|
<ww:actionerror/>
|
||||||
<ww:actionmessage />
|
<ww:actionmessage/>
|
||||||
|
|
||||||
<div style="float:right">
|
<div style="float:right">
|
||||||
<redback:ifAnyAuthorized permissions="archiva-manage-configuration">
|
<redback:ifAnyAuthorized permissions="archiva-manage-configuration">
|
||||||
<ww:url id="addProxyConnectorUrl" action="addProxyConnector" />
|
<ww:url id="addProxyConnectorUrl" action="addProxyConnector"/>
|
||||||
<ww:a href="%{addProxyConnectorUrl}" cssClass="create">
|
<ww:a href="%{addProxyConnectorUrl}" cssClass="create">
|
||||||
<img src="<c:url value="/images/icons/create.png" />" />
|
<img src="<c:url value="/images/icons/create.png" />"/>
|
||||||
Add Proxy Connector
|
Add
|
||||||
</ww:a>
|
</ww:a>
|
||||||
</redback:ifAnyAuthorized>
|
</redback:ifAnyAuthorized>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Repository Proxy Connectors</h2>
|
||||||
|
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${empty(proxyConnectorMap)}">
|
||||||
|
<strong>No Repository Proxy Connectors Defined.</strong>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<table width="100%">
|
||||||
|
<c:forEach items="${proxyConnectorMap}" var="repository" varStatus="i">
|
||||||
|
|
||||||
|
<c:forEach items="${repository.value}" var="connector" varStatus="pc">
|
||||||
|
<tr class="proxyConnector">
|
||||||
|
<c:if test="${pc.first}">
|
||||||
|
<td class="managedRepo" rowspan="${fn:length(repository.value)}">
|
||||||
|
<div>
|
||||||
|
<img src="<c:url value="/images/archiva-splat-32.gif"/>"/>
|
||||||
|
|
||||||
|
<p class="id">${repository.key}</p>
|
||||||
|
|
||||||
|
<p class="name">${repoMap[repository.key].name}</p>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</c:if>
|
||||||
|
<td class="connector">
|
||||||
|
<div class="wrap">
|
||||||
|
<div class="controls">
|
||||||
|
<redback:ifAnyAuthorized permissions="archiva-manage-configuration">
|
||||||
|
<ww:url id="editProxyConnectorUrl" action="editProxyConnector">
|
||||||
|
<ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
|
||||||
|
<ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
|
||||||
|
</ww:url>
|
||||||
|
<ww:url id="deleteProxyConnectorUrl" action="deleteProxyConnector" method="confirm">
|
||||||
|
<ww:param name="source" value="%{'${connector.sourceRepoId}'}"/>
|
||||||
|
<ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
|
||||||
|
</ww:url>
|
||||||
|
<ww:a href="%{editProxyConnectorUrl}" cssClass="edit" title="Edit Proxy Connector">
|
||||||
|
<img src="${iconEditUrl}"/>
|
||||||
|
</ww:a>
|
||||||
|
<ww:a href="%{deleteProxyConnectorUrl}" cssClass="delete" title="Delete Proxy Connector">
|
||||||
|
<img src="${iconDeleteUrl}"/>
|
||||||
|
</ww:a>
|
||||||
|
</redback:ifAnyAuthorized>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h4>Proxy Connector</h4>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th nowrap="nowrap">Network Proxy:</th>
|
||||||
|
<td>
|
||||||
|
<c:choose>
|
||||||
|
<c:when test="${empty(connector.proxyId)}">
|
||||||
|
<i>(Direct Connection)</i>
|
||||||
|
</c:when>
|
||||||
|
<c:otherwise>
|
||||||
|
<ww:url id="editProxyIdUrl" action="editNetworkProxy">
|
||||||
|
<ww:param name="proxyid" value="%{'${connector.proxyId}'}"/>
|
||||||
|
</ww:url>
|
||||||
|
<ww:a href="%{editProxyIdUrl}" cssClass="edit" title="Edit Network Proxy">
|
||||||
|
${connector.proxyId}
|
||||||
|
<img src="${iconEditUrl}"/>
|
||||||
|
</ww:a>
|
||||||
|
</c:otherwise>
|
||||||
|
</c:choose>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Policies:</th>
|
||||||
|
<td nowrap="nowrap">
|
||||||
|
<c:forEach items="${connector.policies}" var="policies">
|
||||||
|
<p><em>${policies.key}</em>: ${policies.value}</p>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<c:if test="${not(empty(connector.whiteListPatterns))}">
|
||||||
|
<tr>
|
||||||
|
<th nowrap="nowrap">White List:</th>
|
||||||
|
<td nowrap="nowrap">
|
||||||
|
<c:forEach items="${connector.whiteListPatterns}" var="pattern">
|
||||||
|
<p><code>"${pattern}"</code></p>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
|
||||||
|
<c:if test="${not(empty(connector.blackListPatterns))}">
|
||||||
|
<tr>
|
||||||
|
<th nowrap="nowrap">Black List:</th>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${connector.blackListPatterns}" var="pattern">
|
||||||
|
<p><code>"${pattern}"</code></p>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
|
||||||
|
<c:if test="${not(empty(connector.properties))}">
|
||||||
|
<tr>
|
||||||
|
<th>Properties:</th>
|
||||||
|
<td>
|
||||||
|
<c:forEach items="${connector.properties}" var="prop">
|
||||||
|
<p><em>${prop.key}</em>: ${prop.value}</p>
|
||||||
|
</c:forEach>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</td>
|
||||||
<h2>Repository Proxy Connectors</h2>
|
<td class="remoteRepo">
|
||||||
|
<div>
|
||||||
<c:choose>
|
<img src="<c:url value="/images/archiva-world.png"/>"/>
|
||||||
<c:when test="${empty(proxyConnectorMap)}">
|
|
||||||
<strong>No Repository Proxy Connectors Defined.</strong>
|
<p class="id">${connector.targetRepoId}</p>
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
<p class="name">${repoMap[connector.targetRepoId].name}</p>
|
||||||
<table width="100%">
|
|
||||||
<c:forEach items="${proxyConnectorMap}" var="repository" varStatus="i">
|
<p class="url">${repoMap[connector.targetRepoId].url}</p>
|
||||||
|
</div>
|
||||||
<c:forEach items="${repository.value}" var="connector" varStatus="pc">
|
</td>
|
||||||
<tr class="proxyConnector">
|
</tr>
|
||||||
<c:if test="${pc.first}">
|
</c:forEach>
|
||||||
<td class="managedRepo" rowspan="${fn:length(repository.value)}">
|
</c:forEach>
|
||||||
<div>
|
</table>
|
||||||
<img src="<c:url value="/images/archiva-splat-32.gif"/>" />
|
</c:otherwise>
|
||||||
<p class="id">${repository.key}</p>
|
</c:choose>
|
||||||
<p class="name">${repoMap[repository.key].name}</p>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</c:if>
|
|
||||||
<td class="connector">
|
|
||||||
<div class="wrap">
|
|
||||||
<div class="controls">
|
|
||||||
<redback:ifAnyAuthorized permissions="archiva-manage-configuration">
|
|
||||||
<ww:url id="editProxyConnectorUrl" action="editProxyConnector">
|
|
||||||
<ww:param name="target" value="%{'${connector.targetRepoId}'}" />
|
|
||||||
<ww:param name="source" value="%{'${connector.sourceRepoId}'}" />
|
|
||||||
</ww:url>
|
|
||||||
<ww:url id="deleteProxyConnectorUrl" action="deleteProxyConnector" method="confirm">
|
|
||||||
<ww:param name="source" value="%{'${connector.sourceRepoId}'}" />
|
|
||||||
<ww:param name="target" value="%{'${connector.targetRepoId}'}" />
|
|
||||||
</ww:url>
|
|
||||||
<ww:a href="%{editProxyConnectorUrl}" cssClass="edit" title="Edit Proxy Connector">
|
|
||||||
<img src="${iconEditUrl}" />
|
|
||||||
</ww:a>
|
|
||||||
<ww:a href="%{deleteProxyConnectorUrl}" cssClass="delete" title="Delete Proxy Connector">
|
|
||||||
<img src="${iconDeleteUrl}" />
|
|
||||||
</ww:a>
|
|
||||||
</redback:ifAnyAuthorized>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h4>Proxy Connector</h4>
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th nowrap="nowrap">Network Proxy:</th>
|
|
||||||
<td>
|
|
||||||
<c:choose>
|
|
||||||
<c:when test="${empty(connector.proxyId)}">
|
|
||||||
<i>(Direct Connection)</i>
|
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
|
||||||
<ww:url id="editProxyIdUrl" action="editNetworkProxy">
|
|
||||||
<ww:param name="proxyid" value="%{'${connector.proxyId}'}" />
|
|
||||||
</ww:url>
|
|
||||||
<ww:a href="%{editProxyIdUrl}" cssClass="edit" title="Edit Network Proxy">
|
|
||||||
${connector.proxyId}
|
|
||||||
<img src="${iconEditUrl}" />
|
|
||||||
</ww:a>
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th>Policies:</th>
|
|
||||||
<td nowrap="nowrap">
|
|
||||||
<c:forEach items="${connector.policies}" var="policies">
|
|
||||||
<p><em>${policies.key}</em>: ${policies.value}</p>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<c:if test="${not(empty(connector.whiteListPatterns))}">
|
|
||||||
<tr>
|
|
||||||
<th nowrap="nowrap">White List:</th>
|
|
||||||
<td nowrap="nowrap">
|
|
||||||
<c:forEach items="${connector.whiteListPatterns}" var="pattern">
|
|
||||||
<p><code>"${pattern}"</code></p>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
<c:if test="${not(empty(connector.blackListPatterns))}">
|
|
||||||
<tr>
|
|
||||||
<th nowrap="nowrap">Black List:</th>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${connector.blackListPatterns}" var="pattern">
|
|
||||||
<p><code>"${pattern}"</code></p>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:if>
|
|
||||||
|
|
||||||
<c:if test="${not(empty(connector.properties))}">
|
|
||||||
<tr>
|
|
||||||
<th>Properties:</th>
|
|
||||||
<td>
|
|
||||||
<c:forEach items="${connector.properties}" var="prop">
|
|
||||||
<p><em>${prop.key}</em>: ${prop.value}</p>
|
|
||||||
</c:forEach>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:if>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td class="remoteRepo">
|
|
||||||
<div>
|
|
||||||
<img src="<c:url value="/images/archiva-world.png"/>" />
|
|
||||||
<p class="id">${connector.targetRepoId}</p>
|
|
||||||
<p class="name">${repoMap[connector.targetRepoId].name}</p>
|
|
||||||
<p class="url">${repoMap[connector.targetRepoId].url}</p>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:forEach>
|
|
||||||
</c:forEach>
|
|
||||||
</table>
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue