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

Sat, 30 May 2020 15:26:15 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 May 2020 15:26:15 +0200
changeset 81
1a2e7b5d48f7
parent 80
27a25f32048e
permissions
-rw-r--r--

adds issue summaries

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

mercurial