Add section when there are no contributors

PR: MAVEN-272
Submitted by: Peter Lynch


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bwalding committed 2003-06-12 09:12:01 +00:00
1 parent 0f28bc89f2
commit 0ddba26c86
2 files changed
+45 -32

No files matched your search

@@ -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>
@@ -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>