]> source.dussan.org Git - archiva.git/blob
a7aeea1c797ec53ebfe79bd03e0f27f6e4f2cff5
[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="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
23 <%@ taglib prefix="archiva" uri="http://archiva.apache.org"%>
24
25 <html>
26 <head>
27 <title>Administration - Network Proxies</title>
28 <ww:head />
29 </head>
30
31 <body>
32
33 <h1>Administration - Network Proxies</h1>
34
35 <div id="contentArea">
36
37 <ww:actionerror /> <ww:actionmessage />
38
39 <div class="admin">
40 <div class="controls">
41 <redback:ifAuthorized
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>
49
50 <c:choose>
51   <c:when test="${empty (networkProxies)}">
52     <%-- No Local Repositories. --%>
53     <strong>There are no network proxies configured yet.</strong>
54   </c:when>
55   <c:otherwise>
56     <%-- Display the repositories. --%>
57
58     <c:forEach items="${networkProxies}" var="proxy" varStatus="i">
59       <c:choose>
60         <c:when test='${(i.index)%2 eq 0}'>
61           <c:set var="rowColor" value="dark" scope="page" />
62         </c:when>
63         <c:otherwise>
64           <c:set var="rowColor" value="lite" scope="page" />
65         </c:otherwise>
66       </c:choose>
67
68       <div class="netproxy ${rowColor}">
69
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}'}" />
75         </ww:url>
76         <ww:url id="deleteNetworkProxyUrl" action="deleteNetworkProxy" method="confirm">
77           <ww:param name="proxyid" value="%{'${proxy.id}'}" />
78         </ww:url>
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>
86
87       <table class="infoTable">
88         <tr>
89           <th>Identifier</th>
90           <td><code>${proxy.id}</code></td>
91         </tr>
92         <tr>
93           <th>Protocol</th>
94           <td>${proxy.protocol}</td>
95         </tr>
96         <tr>
97           <th>Host</th>
98           <td>${proxy.host}</td>
99         </tr>
100         <tr>
101           <th>Port</th>
102           <td>${proxy.port}</td>
103         </tr>
104         <c:if test="${not empty (proxy.username)}">
105           <tr>
106             <th>Username</th>
107             <td>${proxy.username}</td>
108           </tr>
109           <c:if test="${not empty (proxy.password)}">
110             <tr>
111               <th>Password</th>
112               <td>&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;</td>
113             </tr>
114           </c:if>
115         </c:if>
116       </table>
117
118       </div>
119     </c:forEach>
120
121   </c:otherwise>
122 </c:choose>
123 </div>
124
125 </div>
126
127 </body>
128 </html>