Handle case where no issues are found.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@366946 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
61bee9e4cb
commit
f55858ffd7
@ -53,6 +53,12 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<j:set var="issues"><x:expr select="count($entry/item)"/></j:set>
|
||||
<j:choose>
|
||||
<j:when test="${issues == '0'}">
|
||||
<tr><td colspan="10"><em>No issues found!</em></td></tr>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<x:forEach var="entry" select="item">
|
||||
<j:set var="type"><x:expr select="$entry/type"/></j:set>
|
||||
<j:set var="key"><x:expr select="$entry/key"/></j:set>
|
||||
@ -147,6 +153,8 @@
|
||||
<td>${votes}</td>
|
||||
</tr>
|
||||
</x:forEach>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</tbody>
|
||||
</table>
|
||||
</x:forEach>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user