continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r645696 - /continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildDefinitionTemplateSummary.jsp
Date Mon, 07 Apr 2008 21:13:12 GMT
Author: olamy
Date: Mon Apr  7 14:13:11 2008
New Revision: 645696

URL: http://svn.apache.org/viewvc?rev=645696&view=rev
Log:
[CONTINUUM-1651] Unable to delete user-created build definitions
Submitted by Maria Catherine Tan


Modified:
    continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildDefinitionTemplateSummary.jsp

Modified: continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildDefinitionTemplateSummary.jsp
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildDefinitionTemplateSummary.jsp?rev=645696&r1=645695&r2=645696&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildDefinitionTemplateSummary.jsp
(original)
+++ continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/admin/buildDefinitionTemplateSummary.jsp
Mon Apr  7 14:13:11 2008
@@ -95,6 +95,17 @@
             </ww:url>
             <ww:a href="%{editUrl}"><img src="<ww:url value='/images/edit.gif'
includeParams="none"/>" alt="<ww:text name='edit'/>" title="<ww:text name='edit'/>"
border="0"></ww:a>          
           </ec:column>          
+          <ec:column property="deleteAction" title="&nbsp;" width="1%">
+            <ww:if test="${buildDefinitionSummary.isDefault == true}">
+              <img src="<ww:url value='/images/delete_disabled.gif' includeParams="none"/>"
alt="<ww:text name='disabled'/>" title="<ww:text name='disabled'/>" border="0"
/>
+            </ww:if>
+            <ww:else>
+              <ww:url id="deleteUrl" action="deleteBuildDefinitionAsTemplate" method="deleteBuildDefinition"
namespace="/">
+                <ww:param name="buildDefinition.id">${pageScope.buildDefinitionSummary.id}</ww:param>
+              </ww:url>
+              <ww:a href="%{deleteUrl}"><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>          
+          </ec:column>
         </ec:row>  
       </ec:table>      
       



Mime
View raw message