You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by lt...@apache.org on 2006/01/08 01:08:44 UTC

svn commit: r366946 - /maven/maven-1/plugins/trunk/jira/src/plugin-resources/jira.jsl

Author: ltheussl
Date: Sat Jan  7 16:08:43 2006
New Revision: 366946

URL: http://svn.apache.org/viewcvs?rev=366946&view=rev
Log:
Handle case where no issues are found.

Modified:
    maven/maven-1/plugins/trunk/jira/src/plugin-resources/jira.jsl

Modified: maven/maven-1/plugins/trunk/jira/src/plugin-resources/jira.jsl
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/jira/src/plugin-resources/jira.jsl?rev=366946&r1=366945&r2=366946&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/jira/src/plugin-resources/jira.jsl (original)
+++ maven/maven-1/plugins/trunk/jira/src/plugin-resources/jira.jsl Sat Jan  7 16:08:43 2006
@@ -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>