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

Sun, 24 May 2020 15:30:43 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 24 May 2020 15:30:43 +0200
changeset 80
27a25f32048e
permissions
-rw-r--r--

adds project overview page

universe@80 1 <%@ taglib uri = "http://java.sun.com/jsp/jstl/functions" prefix = "fn" %>
universe@80 2
universe@80 3 <table class="datatable">
universe@80 4 <c:if test="${statsHideZeros}">
universe@80 5 <c:set var="visibleColumns" value="0"/>
universe@80 6 <c:forEach var="idx" begin="0" end="${fn:length(issueStatusEnum)-1}">
universe@80 7 <c:set var="visibleColumns" value="${visibleColumns + (stats.columnTotals[idx] eq 0 ? 0 :1)}"/>
universe@80 8 </c:forEach>
universe@80 9 </c:if>
universe@80 10 <c:if test="${not statsHideZeros}">
universe@80 11 <c:set var="visibleColumns" value="${fn:length(issueStatusEnum)}" />
universe@80 12 </c:if>
universe@80 13 <c:set var="colwidth"><fmt:formatNumber value="${100/(visibleColumns+2)}" maxFractionDigits="0" /></c:set>
universe@80 14 <colgroup>
universe@80 15 <c:forEach var="idx" begin="1" end="${visibleColumns+2}">
universe@80 16 <col width="${colwidth}%">
universe@80 17 </c:forEach>
universe@80 18 </colgroup>
universe@80 19 <thead>
universe@80 20 <tr>
universe@80 21 <th></th>
universe@80 22 <c:forEach var="issueStatus" items="${issueStatusEnum}" varStatus="statusIter">
universe@80 23 <c:if test="${not statsHideZeros or stats.columnTotals[statusIter.index] gt 0}">
universe@80 24 <th class="hcenter"><fmt:message key="issue.status.${issueStatus}"/></th>
universe@80 25 </c:if>
universe@80 26 </c:forEach>
universe@80 27 <th class="hcenter"><fmt:message key="version.statistics.total"/> </th>
universe@80 28 </tr>
universe@80 29 </thead>
universe@80 30 <tbody>
universe@80 31 <c:forEach var="issueCategory" items="${issueCategoryEnum}" varStatus="categoryIter">
universe@80 32 <c:if test="${not statsHideZeros or stats.rowTotals[categoryIter.index] gt 0}">
universe@80 33 <tr>
universe@80 34 <th><fmt:message key="issue.category.${issueCategory}" /></th>
universe@80 35 <c:forEach var="issueStatus" items="${issueStatusEnum}" varStatus="statusIter">
universe@80 36 <c:if test="${not statsHideZeros or stats.columnTotals[statusIter.index] gt 0}">
universe@80 37 <td>${stats.issueCount[categoryIter.index][statusIter.index]}</td>
universe@80 38 </c:if>
universe@80 39 </c:forEach>
universe@80 40 <td>${stats.rowTotals[categoryIter.index]}</td>
universe@80 41 </tr>
universe@80 42 </c:if>
universe@80 43 </c:forEach>
universe@80 44 <tr>
universe@80 45 <th><fmt:message key="version.statistics.total"/> </th>
universe@80 46 <c:forEach var="issueStatus" items="${issueStatusEnum}" varStatus="statusIter">
universe@80 47 <c:if test="${not statsHideZeros or stats.columnTotals[statusIter.index] gt 0}">
universe@80 48 <td>${stats.columnTotals[statusIter.index]}</td>
universe@80 49 </c:if>
universe@80 50 </c:forEach>
universe@80 51 <td>${stats.total}</td>
universe@80 52 </tr>
universe@80 53 </tbody>
universe@80 54 </table>

mercurial