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
10 ~ http://www.apache.org/licenses/LICENSE-2.0
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
20 <%@ taglib prefix="ww" uri="/webwork"%>
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
22 <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
23 <%@ taglib prefix="archiva" uri="http://archiva.apache.org"%>
27 <title>Administration - Network Proxies</title>
33 <h1>Administration - Network Proxies</h1>
35 <div id="contentArea">
37 <ww:actionerror /> <ww:actionmessage />
40 <div class="controls">
42 permission="archiva-manage-configuration">
43 <ww:url id="addNetworkProxyUrl" action="addNetworkProxy" />
44 <ww:a href="%{addNetworkProxyUrl}">
45 <img src="<c:url value="/images/icons/create.png" />" />
46 Add Network Proxy</ww:a>
47 </redback:ifAuthorized></div>
48 <h2>Network Proxies</h2>
51 <c:when test="${empty (networkProxies)}">
52 <%-- No Local Repositories. --%>
53 <strong>There are no network proxies configured yet.</strong>
56 <%-- Display the repositories. --%>
58 <c:forEach items="${networkProxies}" var="proxy" varStatus="i">
60 <c:when test='${(i.index)%2 eq 0}'>
61 <c:set var="rowColor" value="dark" scope="page" />
64 <c:set var="rowColor" value="lite" scope="page" />
68 <div class="netproxy ${rowColor}">
70 <div class="controls">
71 <redback:ifAnyAuthorized
72 permissions="archiva-manage-configuration">
73 <ww:url id="editNetworkProxyUrl" action="editNetworkProxy">
74 <ww:param name="proxyid" value="%{'${proxy.id}'}" />
76 <ww:url id="deleteNetworkProxyUrl" action="deleteNetworkProxy" method="confirm">
77 <ww:param name="proxyid" value="%{'${proxy.id}'}" />
79 <ww:a href="%{editNetworkProxyUrl}">
80 <img src="<c:url value="/images/icons/edit.png" />" />
81 Edit Network Proxy</ww:a>
82 <ww:a href="%{deleteNetworkProxyUrl}">
83 <img src="<c:url value="/images/icons/delete.gif" />" />
84 Delete Network Proxy</ww:a>
85 </redback:ifAnyAuthorized></div>
87 <table class="infoTable">
90 <td><code>${proxy.id}</code></td>
94 <td>${proxy.protocol}</td>
98 <td>${proxy.host}</td>
102 <td>${proxy.port}</td>
104 <c:if test="${not empty (proxy.username)}">
107 <td>${proxy.username}</td>
109 <c:if test="${not empty (proxy.password)}">
112 <td>••••••••</td>