]> source.dussan.org Git - archiva.git/commitdiff
MRM-541 - convenient way to take Archiva proxies "offline"
authorJames William Dumay <jdumay@apache.org>
Wed, 20 Aug 2008 07:48:19 +0000 (07:48 +0000)
committerJames William Dumay <jdumay@apache.org>
Wed, 20 Aug 2008 07:48:19 +0000 (07:48 +0000)
* Adding icons for enable/disable from http://en.wikipedia.org/wiki/Power_symbol which are public domain.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@687275 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/proxyConnectors.jsp
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/off-symbol.png [new file with mode: 0644]
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/on-symbol.png [new file with mode: 0644]

index ab64652ae57374f0ad28afc79fb48eecb39e0427..b084a1d3431bf14122e9f4149504e6a43105ec9a 100644 (file)
@@ -38,6 +38,8 @@
 <c:url var="iconCreateUrl" value="/images/icons/create.png"/>
 <c:url var="iconUpUrl" value="/images/icons/up.gif"/>
 <c:url var="iconDownUrl" value="/images/icons/down.gif"/>
+<c:url var="iconEnable" value="/images/icons/on-symbol.png"/>
+<c:url var="iconDisable" value="/images/icons/off-symbol.png"/>
 
 <div id="contentArea">
 
           <ww:param name="target" value="%{'${connector.targetRepoId}'}"/>
         </ww:url>
         <c:if test="${connector.disabled}">
-            <ww:a href="%{enableProxyConnectorUrl}" title="Enable Proxy Connector">Enable</ww:a>
+            <ww:a href="%{enableProxyConnectorUrl}" title="Enable Proxy Connector">
+                               <img src="${iconDisable}"/>
+                       </ww:a>
         </c:if>
         <c:if test="${connector.disabled == false}">
-            <ww:a href="%{disableProxyConnectorUrl}" title="Disable Proxy Connector">Disable</ww:a>
+            <ww:a href="%{disableProxyConnectorUrl}" title="Disable Proxy Connector">
+                               <img src="${iconEnable}"/>
+                       </ww:a>
         </c:if>
         <c:if test="${pc.count > 1}">
           <ww:a href="%{sortUpProxyConnectorUrl}" title="Move Proxy Connector Up">
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/off-symbol.png b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/off-symbol.png
new file mode 100644 (file)
index 0000000..6326912
Binary files /dev/null and b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/off-symbol.png differ
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/on-symbol.png b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/on-symbol.png
new file mode 100644 (file)
index 0000000..4bcccd5
Binary files /dev/null and b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/images/icons/on-symbol.png differ