continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r441305 - in /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp: buildResults.jsp navigations/ProjectMenu.jsp projectView.jsp workingCopy.jsp
Date Fri, 08 Sep 2006 00:10:29 GMT
Author: carlos
Date: Thu Sep  7 17:10:29 2006
New Revision: 441305

URL: http://svn.apache.org/viewvc?view=rev&rev=441305
Log:
Add ProjectMenu.jsp header page

Added:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp
  (with props)
Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/buildResults.jsp
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectView.jsp
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/workingCopy.jsp

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/buildResults.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/buildResults.jsp?view=diff&rev=441305&r1=441304&r2=441305
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/buildResults.jsp
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/buildResults.jsp
Thu Sep  7 17:10:29 2006
@@ -8,17 +8,10 @@
     </head>
     <body>
       <div id="h3">
-        <div>
-          <p style="border-top: 1px solid transparent; border-bottom: 1px solid #DFDEDE;">
-            <a style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;
text-decoration: none;" href="<ww:url value="/projectView.action?projectId="/><ww:property
value="projectId"/>&projectName=<ww:property value="projectName"/>"><ww:text
name="info"/></a>
-            <b style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;"><ww:text
name="builds"/></b>
-            <a style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;
text-decoration: none;"
-              href='<ww:url action="workingCopy"><ww:param name="projectId" value="projectId"/></ww:url>'
-            >
-              <ww:text name="workingCopy"/>
-            </a>
-          </p>
-        </div>
+
+        <jsp:include page="/navigations/ProjectMenu.jsp">
+          <jsp:param name="tab" value="buildResults"/>
+        </jsp:include>
 
         <h3>
             <ww:text name="buildResults.section.title">

Added: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp?view=auto&rev=441305
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp
(added)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp
Thu Sep  7 17:10:29 2006
@@ -0,0 +1,46 @@
+<%@ taglib uri="/webwork" prefix="ww" %>
+<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
+<%@ taglib uri="continuum" prefix="c1" %>
+
+<div>
+  <p style="border-top: 1px solid transparent; border-bottom: 1px solid #DFDEDE;">
+
+    <ww:url id="viewUrl" action="projectView">
+      <ww:param name="projectId" value="projectId"/>
+    </ww:url>
+    <ww:url id="buildResultsUrl" action="buildResults">
+      <ww:param name="projectId" value="projectId"/>
+    </ww:url>
+    <ww:url id="workingCopyUrl" action="workingCopy">
+      <ww:param name="projectId" value="projectId"/>
+    </ww:url>
+
+    <c:choose>
+      <c:when test="${param.tab == 'view'}">
+        <b class="tabMenuDisabled"><ww:text name="info"/></b>
+      </c:when>
+      <c:otherwise>
+        <ww:a cssClass="tabMenuEnabled" href="%{viewUrl}"><ww:text name="info"/></ww:a>
+      </c:otherwise>
+    </c:choose>
+
+    <c:choose>
+      <c:when test="${param.tab == 'buildResults'}">
+        <b class="tabMenuDisabled"><ww:text name="builds"/></b>
+      </c:when>
+      <c:otherwise>
+        <ww:a cssClass="tabMenuEnabled" href="%{buildResultsUrl}"><ww:text name="builds"/></ww:a>
+      </c:otherwise>
+    </c:choose>
+
+    <c:choose>
+      <c:when test="${param.tab == 'workingCopy'}">
+        <b class="tabMenuDisabled"><ww:text name="workingCopy"/></b>
+      </c:when>
+      <c:otherwise>
+        <ww:a cssClass="tabMenuEnabled" href="%{workingCopyUrl}"><ww:text name="workingCopy"/></ww:a>
+      </c:otherwise>
+    </c:choose>
+
+  </p>
+</div>

Propchange: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/navigations/ProjectMenu.jsp
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectView.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectView.jsp?view=diff&rev=441305&r1=441304&r2=441305
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectView.jsp
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/projectView.jsp
Thu Sep  7 17:10:29 2006
@@ -10,13 +10,10 @@
     </head>
     <body>
       <div id="h3">
-        <div>
-          <p style="border-top: 1px solid transparent; border-bottom: 1px solid #DFDEDE;">
-            <b style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;"><ww:text
name="info"/></b>
-            <a style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;
text-decoration: none;" href="<ww:url value="/buildResults.action?projectId="/><ww:property
value="project.id"/>&projectName=<ww:property value="project.name"/>"><ww:text
name="builds"/></a>
-            <a style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;
text-decoration: none;" href="<ww:url value="/workingCopy.action?projectId="/><ww:property
value="project.id"/>&projectName=<ww:property value="project.name"/>"><ww:text
name="workingCopy"/></a>
-          </p>
-        </div>
+
+        <jsp:include page="/navigations/ProjectMenu.jsp">
+          <jsp:param name="tab" value="view"/>
+        </jsp:include>
 
         <h3><ww:text name="projectView.section.title"/></h3>
             

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/workingCopy.jsp
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/workingCopy.jsp?view=diff&rev=441305&r1=441304&r2=441305
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/workingCopy.jsp
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/webapp/workingCopy.jsp
Thu Sep  7 17:10:29 2006
@@ -6,23 +6,10 @@
     </head>
     <body>
       <div id="h3">
-        <div>
-          <p style="border-top: 1px solid transparent; border-bottom: 1px solid #DFDEDE;">
-            <a style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;
text-decoration: none;"
-              href='<ww:url action="projectView">
-                  <ww:param name="projectId" value="projectId"/>
-                </ww:url>'>
-              <ww:text name="info"/>
-            </a>
-            <a style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;
text-decoration: none;"
-              href='<ww:url action="buildResults">
-                  <ww:param name="projectId" value="projectId"/>
-                </ww:url>'>
-              <ww:text name="builds"/>
-            </a>
-            <b style="border: 1px solid #DFDEDE; padding-left: 1em; padding-right: 1em;"><ww:text
name="workingCopy"/></b>
-          </p>
-        </div>
+
+        <jsp:include page="/navigations/ProjectMenu.jsp">
+          <jsp:param name="tab" value="buildResults"/>
+        </jsp:include>
 
         <h3>
             <ww:text name="workingCopy.section.title">



Mime
View raw message