continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmora...@apache.org
Subject svn commit: r766753 - /continuum/branches/continuum-1.2.x/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp
Date Mon, 20 Apr 2009 16:55:40 GMT
Author: jmorales
Date: Mon Apr 20 16:55:39 2009
New Revision: 766753

URL: http://svn.apache.org/viewvc?rev=766753&view=rev
Log:
Related to issue CONTINUUM-2075. 

Don't allow delete deault build definition in 'Project Information' tab.


Modified:
    continuum/branches/continuum-1.2.x/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp

Modified: continuum/branches/continuum-1.2.x/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp?rev=766753&r1=766752&r2=766753&view=diff
==============================================================================
--- continuum/branches/continuum-1.2.x/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp
(original)
+++ continuum/branches/continuum-1.2.x/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/buildDefinitionSummaryComponent.jsp
Mon Apr 20 16:55:39 2009
@@ -110,13 +110,18 @@
         </ww:if>
         <ww:else>
           <redback:ifAuthorized permission="continuum-remove-group-build-definition" resource="${projectGroupName}">
-            <ww:url id="removeUrl" action="removeGroupBuildDefinition" namespace="/">
-              <ww:param name="projectGroupId">${pageScope.buildDefinitionSummary.projectGroupId}</ww:param>
-              <ww:param name="buildDefinitionId">${pageScope.buildDefinitionSummary.id}</ww:param>
-              <ww:param name="groupBuildDefinition">true</ww:param>
-              <ww:param name="confirmed" value="false"/>
-            </ww:url>
-            <ww:a href="%{removeUrl}"><img src="<ww:url value='/images/delete.gif'
includeParams="none"/>" alt="<ww:text name='delete'/>" title="<ww:text name='delete'/>"
border="0"></ww:a>
+            <ww:if test="${pageScope.buildDefinitionSummary.isDefault == true}">
+              <img src="<ww:url value='/images/delete_disabled.gif' includeParams="none"/>"
alt="<ww:text name='delete'/>" title="<ww:text name='delete'/>" border="0">
+            </ww:if>
+            <ww:else> 
+              <ww:url id="removeUrl" action="removeGroupBuildDefinition" namespace="/">
+                <ww:param name="projectGroupId">${pageScope.buildDefinitionSummary.projectGroupId}</ww:param>
+                <ww:param name="buildDefinitionId">${pageScope.buildDefinitionSummary.id}</ww:param>
+                <ww:param name="groupBuildDefinition">true</ww:param>
+                <ww:param name="confirmed" value="false"/>
+              </ww:url>
+              <ww:a href="%{removeUrl}"><img src="<ww:url value='/images/delete.gif'
includeParams="none"/>" alt="<ww:text name='delete'/>" title="<ww:text name='delete'/>"
border="0"></ww:a>
+            </ww:else>
           </redback:ifAuthorized>
           <redback:elseAuthorized>
             <img src="<ww:url value='/images/delete_disabled.gif' includeParams="none"/>"
alt="<ww:text name='delete'/>" title="<ww:text name='delete'/>" border="0" />



Mime
View raw message