continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r576923 - /maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
Date Tue, 18 Sep 2007 13:55:30 GMT
Author: evenisse
Date: Tue Sep 18 06:55:29 2007
New Revision: 576923

URL: http://svn.apache.org/viewvc?rev=576923&view=rev
Log:
one more state icon fix

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp?rev=576923&r1=576922&r2=576923&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
Tue Sep 18 06:55:29 2007
@@ -117,9 +117,16 @@
                   <ww:url id="cancelBuildProjectUrl" action="cancelBuild" namespace="/"
includeParams="none">
                     <ww:param name="projectId" value="${project.id}"/>
                   </ww:url>
-                  <ww:a href="%{cancelBuildProjectUrl}">
-                    <img src="<ww:url value='/images/cancelbuild.gif'/>" alt="Cancel
Build" title="Cancel Build" border="0">
-                  </ww:a>
+                  <c:choose>
+                    <c:when test="${project.state != 8}">
+                      <ww:a href="%{cancelBuildProjectUrl}">
+                        <img src="<ww:url value='/images/cancelbuild.gif'/>" alt="Cancel
Build" title="Cancel Build" border="0">
+                      </ww:a>
+                    </c:when>
+                    <c:otherwise>
+                      <img src="<ww:url value='/images/cancelbuild_disabled.gif'/>"
alt="Cancel Build" title="Cancel Build" border="0">
+                    </c:otherwise>
+                  </c:choose>
                 </c:otherwise>
               </c:choose>
             </redback:ifAuthorized>



Mime
View raw message