You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ev...@apache.org on 2007/09/18 15:55:30 UTC

svn commit: r576923 - /maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp

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>