You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ca...@apache.org on 2006/09/18 07:52:50 UTC

svn commit: r447264 - in /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp: components/projectSummaryComponent.jsp projectGroupSummary.jsp

Author: carlos
Date: Sun Sep 17 22:52:50 2006
New Revision: 447264

URL: http://svn.apache.org/viewvc?view=rev&rev=447264
Log:
Use jsp include instead of cell

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/components/projectSummaryComponent.jsp
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupSummary.jsp

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/components/projectSummaryComponent.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/components/projectSummaryComponent.jsp?view=diff&rev=447264&r1=447263&r2=447264
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/components/projectSummaryComponent.jsp (original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/components/projectSummaryComponent.jsp Sun Sep 17 22:52:50 2006
@@ -23,8 +23,9 @@
       <ec:column property="buildNumber" title="summary.projectTable.build" width="5%"
                  cell="org.apache.maven.continuum.web.view.BuildCell"/>
       <ec:column property="projectGroupName" title="summary.projectTable.group" width="13%"/>
-      <ec:column property="buildNowAction" title="&nbsp;" width="16px"
-                 cell="org.apache.maven.continuum.web.view.BuildNowCell"/>
+      <ec:column property="buildNowAction" title="&nbsp;" width="16px">
+        <jsp:include page="/components/buildNowCell.jsp"/>
+      </ec:column>
       <ec:column property="buildHistoryAction" title="&nbsp;" width="16px">
         <c:choose>
           <c:when test="${pageScope.project.latestBuildId > 0}">

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupSummary.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupSummary.jsp?view=diff&rev=447264&r1=447263&r2=447264
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupSummary.jsp (original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectGroupSummary.jsp Sun Sep 17 22:52:50 2006
@@ -18,14 +18,20 @@
         <h3>Project Group Actions</h3>
 
         <div class="functnbar3">
-          <ww:url id="buildProjectGroupUrl" action="buildProjectGroup">
-            <ww:param name="projectGroupId" value="projectGroupId"/>
-          </ww:url>
-          <ww:url id="removeProjectGroupUrl" action="removeProjectGroup">
-            <ww:param name="projectGroupId" value="projectGroupId"/>           
-            <ww:param name="confirmed" value="false"/>
-          </ww:url>
-          <ww:a href="%{buildProjectGroupUrl}">Build</ww:a>&nbsp;<ww:a href="%{removeProjectGroupUrl}">Remove</ww:a>
+          <c:if test="${projectGroup.permissions.execute}">
+            <ww:url id="buildProjectGroupUrl" action="buildProjectGroup">
+              <ww:param name="projectGroupId" value="projectGroupId"/>
+            </ww:url>
+            <ww:a href="%{buildProjectGroupUrl}">Build</ww:a>
+          </c:if>
+          &nbsp;
+          <c:if test="${projectGroup.permissions.delete}">
+            <ww:url id="removeProjectGroupUrl" action="removeProjectGroup">
+              <ww:param name="projectGroupId" value="projectGroupId"/>           
+              <ww:param name="confirmed" value="false"/>
+            </ww:url>
+            <ww:a href="%{removeProjectGroupUrl}">Remove</ww:a>
+          </c:if>
         </div>
 
         <h3>Projects</h3>