continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From epunza...@apache.org
Subject svn commit: r545307 - /maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/jsp/components/projectSummaryComponent.jsp
Date Thu, 07 Jun 2007 20:45:13 GMT
Author: epunzalan
Date: Thu Jun  7 13:45:12 2007
New Revision: 545307

URL: http://svn.apache.org/viewvc?view=rev&rev=545307
Log:
[CONTINUUM-691] made the build number to be always visible when available

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?view=diff&rev=545307&r1=545306&r2=545307
==============================================================================
--- 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
Thu Jun  7 13:45:12 2007
@@ -48,8 +48,27 @@
         <ww:a href="%{projectUrl}">${pageScope.project.name}</ww:a>
       </ec:column>
       <ec:column property="version" title="summary.projectTable.version" width="13%"/>
-      <ec:column property="buildNumber" title="summary.projectTable.build" width="5%"
-                 cell="org.apache.maven.continuum.web.view.BuildCell"/>
+      <ec:column property="buildNumber" title="summary.projectTable.build" width="5%">
+        <c:choose>
+          <c:when test="${project.buildNumber gt 0}">
+            <redback:ifAuthorized permission="continuum-view-group" resource="${projectGroupName}">
+              <ww:url id="buildResult" action="buildResult">
+                <ww:param name="projecGroupId" value="${project.projectGroupId}"/>
+                <ww:param name="projectId" value="${project.id}"/>
+                <ww:param name="projectName" value="${project.name}"/>
+                <ww:param name="buildId" value="${project.buildInSuccessId}"/>
+              </ww:url>
+              <ww:a href="%{buildResult}">${project.buildNumber}</ww:a>
+            </redback:ifAuthorized>
+            <redback:elseAuthorized>
+              ${project.buildNumber}
+            </redback:elseAuthorized>
+          </c:when>
+          <c:otherwise>
+            &nbsp;
+          </c:otherwise>
+        </c:choose>
+      </ec:column>
       <ec:column property="projectGroupName" title="summary.projectTable.group" width="13%"/>

       <ec:column property="buildNowAction" title="&nbsp;" width="1%">
         <redback:ifAuthorized permission="continuum-build-group" resource="${projectGroupName}">



Mime
View raw message