src/main/webapp/WEB-INF/jsp/version.jsp

changeset 88
1438e5a22c55
parent 86
0a658e53177c
child 91
c3a6c65b3729
--- a/src/main/webapp/WEB-INF/jsp/version.jsp	Sun Jun 21 11:10:30 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/version.jsp	Sun Jun 21 11:38:16 2020 +0200
@@ -44,22 +44,19 @@
 <a href="./projects/versions/edit?vid=${version.id}">&#x270e;</a>
 </h2>
 
-<h3><fmt:message key="issues.reported"/> </h3>
-
-<c:set var="summary" value="${viewmodel.versionInfo.reportedTotal}"/>
-<c:set var="issues" value="${viewmodel.versionInfo.reported}"/>
-<%@include file="../jspf/issue-summary.jsp"%>
-<%@include file="../jspf/issue-list.jsp"%>
+<c:if test="${not empty viewmodel.versionInfo.resolved}">
+    <h3><fmt:message key="issues.resolved"/> </h3>
+    <c:set var="summary" value="${viewmodel.versionInfo.resolvedTotal}"/>
+    <c:set var="issues" value="${viewmodel.versionInfo.resolved}"/>
+    <%@include file="../jspf/issue-summary.jsp"%>
+    <%@include file="../jspf/issue-list.jsp"%>
+</c:if>
 
-<h3><fmt:message key="issues.scheduled"/> </h3>
-<c:set var="summary" value="${viewmodel.versionInfo.scheduledTotal}"/>
-<c:set var="issues" value="${viewmodel.versionInfo.scheduled}"/>
-<%@include file="../jspf/issue-summary.jsp"%>
-<%@include file="../jspf/issue-list.jsp"%>
+<c:if test="${not empty viewmodel.versionInfo.reported}">
+    <h3><fmt:message key="issues.reported"/> </h3>
+    <c:set var="summary" value="${viewmodel.versionInfo.reportedTotal}"/>
+    <c:set var="issues" value="${viewmodel.versionInfo.reported}"/>
+    <%@include file="../jspf/issue-summary.jsp"%>
+    <%@include file="../jspf/issue-list.jsp"%>
+</c:if>
 
-<h3><fmt:message key="issues.resolved"/> </h3>
-<c:set var="summary" value="${viewmodel.versionInfo.resolvedTotal}"/>
-<c:set var="issues" value="${viewmodel.versionInfo.resolved}"/>
-<%@include file="../jspf/issue-summary.jsp"%>
-<%@include file="../jspf/issue-list.jsp"%>
-

mercurial