You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

networkProxies.jsp 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <%@ taglib prefix="s" uri="/struts-tags"%>
  20. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  21. <%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
  22. <%@ taglib prefix="archiva" uri="http://archiva.apache.org"%>
  23. <html>
  24. <head>
  25. <title>Administration - Network Proxies</title>
  26. <s:head />
  27. </head>
  28. <body>
  29. <h1>Administration - Network Proxies</h1>
  30. <div id="contentArea">
  31. <s:actionerror /> <s:actionmessage />
  32. <div class="admin">
  33. <div class="controls">
  34. <redback:ifAuthorized
  35. permission="archiva-manage-configuration">
  36. <s:url id="addNetworkProxyUrl" action="addNetworkProxy" />
  37. <s:a href="%{addNetworkProxyUrl}">
  38. <img src="<c:url value="/images/icons/create.png" />" />
  39. Add Network Proxy</s:a>
  40. </redback:ifAuthorized></div>
  41. <h2>Network Proxies</h2>
  42. <c:choose>
  43. <c:when test="${empty (networkProxies)}">
  44. <%-- No Local Repositories. --%>
  45. <strong>There are no network proxies configured yet.</strong>
  46. </c:when>
  47. <c:otherwise>
  48. <%-- Display the repositories. --%>
  49. <c:forEach items="${networkProxies}" var="proxy" varStatus="i">
  50. <c:choose>
  51. <c:when test='${(i.index)%2 eq 0}'>
  52. <c:set var="rowColor" value="dark" scope="page" />
  53. </c:when>
  54. <c:otherwise>
  55. <c:set var="rowColor" value="lite" scope="page" />
  56. </c:otherwise>
  57. </c:choose>
  58. <div class="netproxy ${rowColor}">
  59. <div class="controls">
  60. <redback:ifAnyAuthorized
  61. permissions="archiva-manage-configuration">
  62. <s:url id="editNetworkProxyUrl" action="editNetworkProxy">
  63. <s:param name="proxyid" value="%{'${proxy.id}'}" />
  64. </s:url>
  65. <s:url id="deleteNetworkProxyUrl" action="deleteNetworkProxy" method="confirm">
  66. <s:param name="proxyid" value="%{'${proxy.id}'}" />
  67. </s:url>
  68. <s:a href="%{editNetworkProxyUrl}">
  69. <img src="<c:url value="/images/icons/edit.png" />" />
  70. Edit Network Proxy</s:a>
  71. <s:a href="%{deleteNetworkProxyUrl}">
  72. <img src="<c:url value="/images/icons/delete.gif" />" />
  73. Delete Network Proxy</s:a>
  74. </redback:ifAnyAuthorized></div>
  75. <table class="infoTable">
  76. <tr>
  77. <th>Identifier</th>
  78. <td><code>${proxy.id}</code></td>
  79. </tr>
  80. <tr>
  81. <th>Protocol</th>
  82. <td>${proxy.protocol}</td>
  83. </tr>
  84. <tr>
  85. <th>Host</th>
  86. <td>${proxy.host}</td>
  87. </tr>
  88. <tr>
  89. <th>Port</th>
  90. <td>${proxy.port}</td>
  91. </tr>
  92. <c:if test="${not empty (proxy.username)}">
  93. <tr>
  94. <th>Username</th>
  95. <td>${proxy.username}</td>
  96. </tr>
  97. <c:if test="${not empty (proxy.password)}">
  98. <tr>
  99. <th>Password</th>
  100. <td>&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;</td>
  101. </tr>
  102. </c:if>
  103. </c:if>
  104. </table>
  105. </div>
  106. </c:forEach>
  107. </c:otherwise>
  108. </c:choose>
  109. </div>
  110. </div>
  111. </body>
  112. </html>