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

changeset 86
0a658e53177c
parent 85
3d16ad54b3dc
child 87
501addad452b
     1.1 --- a/src/main/webapp/WEB-INF/jspf/version-stats.jsp	Sat May 30 18:12:38 2020 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,54 +0,0 @@
     1.4 -<%@ taglib uri = "http://java.sun.com/jsp/jstl/functions" prefix = "fn" %>
     1.5 -
     1.6 -<table class="datatable">
     1.7 -    <c:if test="${statsHideZeros}">
     1.8 -        <c:set var="visibleColumns" value="0"/>
     1.9 -        <c:forEach var="idx" begin="0" end="${fn:length(issueStatusEnum)-1}">
    1.10 -            <c:set var="visibleColumns" value="${visibleColumns + (stats.columnTotals[idx] eq 0 ? 0 :1)}"/>
    1.11 -        </c:forEach>
    1.12 -    </c:if>
    1.13 -    <c:if test="${not statsHideZeros}">
    1.14 -        <c:set var="visibleColumns" value="${fn:length(issueStatusEnum)}" />
    1.15 -    </c:if>
    1.16 -    <c:set var="colwidth"><fmt:formatNumber value="${100/(visibleColumns+2)}" maxFractionDigits="0" /></c:set>
    1.17 -    <colgroup>
    1.18 -        <c:forEach var="idx" begin="1" end="${visibleColumns+2}">
    1.19 -        <col width="${colwidth}%">
    1.20 -        </c:forEach>
    1.21 -    </colgroup>
    1.22 -    <thead>
    1.23 -        <tr>
    1.24 -            <th></th>
    1.25 -            <c:forEach var="issueStatus" items="${issueStatusEnum}" varStatus="statusIter">
    1.26 -                <c:if test="${not statsHideZeros or stats.columnTotals[statusIter.index] gt 0}">
    1.27 -                <th class="hcenter"><fmt:message key="issue.status.${issueStatus}"/></th>
    1.28 -                </c:if>
    1.29 -            </c:forEach>
    1.30 -            <th class="hcenter"><fmt:message key="version.statistics.total"/> </th>
    1.31 -        </tr>
    1.32 -    </thead>
    1.33 -    <tbody>
    1.34 -    <c:forEach var="issueCategory" items="${issueCategoryEnum}" varStatus="categoryIter">
    1.35 -        <c:if test="${not statsHideZeros or stats.rowTotals[categoryIter.index] gt 0}">
    1.36 -        <tr>
    1.37 -        <th><fmt:message key="issue.category.${issueCategory}" /></th>
    1.38 -        <c:forEach var="issueStatus" items="${issueStatusEnum}" varStatus="statusIter">
    1.39 -            <c:if test="${not statsHideZeros or stats.columnTotals[statusIter.index] gt 0}">
    1.40 -            <td>${stats.issueCount[categoryIter.index][statusIter.index]}</td>
    1.41 -            </c:if>
    1.42 -        </c:forEach>
    1.43 -        <td>${stats.rowTotals[categoryIter.index]}</td>
    1.44 -        </tr>
    1.45 -        </c:if>
    1.46 -    </c:forEach>
    1.47 -    <tr>
    1.48 -        <th><fmt:message key="version.statistics.total"/> </th>
    1.49 -        <c:forEach var="issueStatus" items="${issueStatusEnum}" varStatus="statusIter">
    1.50 -            <c:if test="${not statsHideZeros or stats.columnTotals[statusIter.index] gt 0}">
    1.51 -            <td>${stats.columnTotals[statusIter.index]}</td>
    1.52 -            </c:if>
    1.53 -        </c:forEach>
    1.54 -        <td>${stats.total}</td>
    1.55 -    </tr>
    1.56 -    </tbody>
    1.57 -</table>
    1.58 \ No newline at end of file

mercurial