bwalding    2003/06/12 02:12:01

  Modified:    src/plugins-build/xdoc/src/plugin-resources/templates
                        team-list.xml
               src/plugins-build/xdoc/src/plugin-resources/jelly-templates
                        team-list.xml
  Log:
  Add section when there are no contributors
  PR: MAVEN-272
  Submitted by: Peter Lynch
  
  Revision  Changes    Path
  1.6       +10 -5     
maven/src/plugins-build/xdoc/src/plugin-resources/templates/team-list.xml
  
  Index: team-list.xml
  ===================================================================
  RCS file: 
/home/cvs/maven/src/plugins-build/xdoc/src/plugin-resources/templates/team-list.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- team-list.xml     15 May 2003 12:56:25 -0000      1.5
  +++ team-list.xml     12 Jun 2003 09:12:01 -0000      1.6
  @@ -97,11 +97,17 @@
           #end
         </table>
       #end
  -    #if ($project.contributors.size() != 0 )
  -      <section name="Contributors">
  +     </section>
  +     <section name="Contributors">
  +    #if ($project.contributors.size() == 0)
  +       <p>
  +         There are no contributors listed for this project. Please check
  +         back again later.
  +       </p>
  +    #else
         <p>
  -      The following additional people have contributed to this project
  -      through the way of suggestions, patches or documentation.
  +        The following additional people have contributed to this project
  +        through the way of suggestions, patches or documentation.
         </p>
         <table>
           <tr>
  @@ -123,7 +129,6 @@
           </tr>
           #end
         </table>
  -      </section>
       #end
       </section>
     </body>
  
  
  
  1.2       +35 -27    
maven/src/plugins-build/xdoc/src/plugin-resources/jelly-templates/team-list.xml
  
  Index: team-list.xml
  ===================================================================
  RCS file: 
/home/cvs/maven/src/plugins-build/xdoc/src/plugin-resources/jelly-templates/team-list.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- team-list.xml     10 Apr 2003 10:51:44 -0000      1.1
  +++ team-list.xml     12 Jun 2003 09:12:01 -0000      1.2
  @@ -66,34 +66,42 @@
           </j:forEach>
         </table>
       </j:if>
  -    <j:if test="${size(pom.contributors) != 0}">
  -      <section name="Contributors">
  -      <p>
  -      The following additional people have contributed to this project
  -      through the way of suggestions, patches or documentation.
  -      </p>
  -      <table>
  -        <tr>
  -          <th>Name</th>
  -          <th>Email</th>
  -          <th>Organization</th>
  -          <th>Roles</th>
  -        </tr>
  -        <j:forEach var="contributor" items="${pom.contributors}">
  -        <tr>
  -          <td>${contributor.name}</td>
  -          <td><a href="mailto:${contributor.email}";>${contributor.email}</a></td>
  -          <td>${contributor.organization}</td>
  -          <td>
  -          <j:forEach var="role" items="${contributor.roles}">
  -          ${role}<br/>
  +    </section>
  +
  +    <section name="Contributors">
  +      <j:if test="${size(pom.contributors) == 0}">
  +        <p>
  +           There are no contributors listed for this project. Please check
  +           back again later.
  +        </p>
  +      </j:if>
  +
  +      <j:if test="${size(pom.contributors) != 0}">
  +        <p>
  +          The following additional people have contributed to this project
  +          through the way of suggestions, patches or documentation.
  +        </p>
  +        <table>
  +          <tr>
  +            <th>Name</th>
  +            <th>Email</th>
  +            <th>Organization</th>
  +            <th>Roles</th>
  +          </tr>
  +          <j:forEach var="contributor" items="${pom.contributors}">
  +          <tr>
  +            <td>${contributor.name}</td>
  +            <td><a href="mailto:${contributor.email}";>${contributor.email}</a></td>
  +            <td>${contributor.organization}</td>
  +            <td>
  +            <j:forEach var="role" items="${contributor.roles}">
  +            ${role}<br/>
  +            </j:forEach>
  +            </td>
  +          </tr>
             </j:forEach>
  -          </td>
  -        </tr>
  -        </j:forEach>
  -      </table>
  -      </section>
  -    </j:if>
  +        </table>
  +      </j:if>
       </section>
     </body>
   </document>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to