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

Thu, 08 Oct 2020 20:16:47 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 08 Oct 2020 20:16:47 +0200
changeset 109
2e0669e814ff
parent 105
src/main/webapp/WEB-INF/jsp/project-details.jsp@250c5cbb8276
child 110
9d0be0b1580f
permissions
-rw-r--r--

adds versions overview

includes major refactoring of side menu generation

universe@47 1 <%--
universe@47 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@47 3
universe@109 4 Copyright 2020 Mike Becker. All rights reserved.
universe@47 5
universe@47 6 Redistribution and use in source and binary forms, with or without
universe@47 7 modification, are permitted provided that the following conditions are met:
universe@47 8
universe@47 9 1. Redistributions of source code must retain the above copyright
universe@47 10 notice, this list of conditions and the following disclaimer.
universe@47 11
universe@47 12 2. Redistributions in binary form must reproduce the above copyright
universe@47 13 notice, this list of conditions and the following disclaimer in the
universe@47 14 documentation and/or other materials provided with the distribution.
universe@47 15
universe@47 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@47 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@47 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@47 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@47 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@47 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@47 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@47 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@47 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@47 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@47 26 --%>
universe@47 27 <%@page pageEncoding="UTF-8" %>
universe@47 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@47 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@47 30
universe@109 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionsView" scope="request" />
universe@47 32
universe@99 33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
universe@86 34 <%@include file="../jspf/project-header.jsp"%>
universe@81 35
universe@47 36 <div id="tool-area">
universe@78 37 <a href="./projects/versions/edit" class="button"><fmt:message key="button.version.create"/></a>
universe@86 38 <a href="./projects/issues/edit?pid=${project.id}" class="button"><fmt:message key="button.issue.create"/></a>
universe@47 39 </div>
universe@47 40
universe@86 41 <h2><fmt:message key="progress" /></h2>
universe@86 42
universe@99 43 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
universe@86 44 <%@include file="../jspf/issue-summary.jsp"%>
universe@86 45
universe@109 46 <table id="version-list" class="datatable medskip fullwidth">
universe@109 47 <colgroup>
universe@109 48 <col>
universe@109 49 <col width="20%">
universe@109 50 <col width="20%">
universe@109 51 <col width="10%">
universe@109 52 <col width="10%">
universe@109 53 <col width="10%">
universe@109 54 <col width="10%">
universe@109 55 <col width="10%">
universe@109 56 <col width="10%">
universe@109 57 </colgroup>
universe@109 58 <thead>
universe@109 59 <tr>
universe@109 60 <th colspan="3"></th>
universe@109 61 <th colspan="3" class="hcenter">
universe@109 62 <fmt:message key="issues.resolved"/>
universe@109 63 </th>
universe@109 64 <th colspan="3" class="hcenter">
universe@109 65 <fmt:message key="issues.reported"/>
universe@109 66 </th>
universe@109 67 </tr>
universe@109 68 <tr>
universe@109 69 <th></th>
universe@109 70 <th><fmt:message key="version.name"/></th>
universe@109 71 <th><fmt:message key="version.status" /></th>
universe@109 72 <th class="hcenter"><fmt:message key="issues.open" /></th>
universe@109 73 <th class="hcenter"><fmt:message key="issues.active" /></th>
universe@109 74 <th class="hcenter"><fmt:message key="issues.done" /></th>
universe@109 75 <th class="hcenter"><fmt:message key="issues.open" /></th>
universe@109 76 <th class="hcenter"><fmt:message key="issues.active" /></th>
universe@109 77 <th class="hcenter"><fmt:message key="issues.done" /></th>
universe@109 78 </tr>
universe@109 79 </thead>
universe@109 80 <tbody>
universe@109 81 <c:forEach var="versionInfo" items="${viewmodel.versionInfo}" >
universe@109 82 <tr>
universe@109 83 <td style="width: 2em;"><a href="./projects/versions/edit?vid=${versionInfo.version.id}">&#x270e;</a></td>
universe@109 84 <td>
universe@109 85 <a href="projects/view?pid=${viewmodel.projectInfo.project.id}&vid=${versionInfo.version.id}">
universe@109 86 <c:out value="${versionInfo.version.name}"/>
universe@109 87 </a>
universe@109 88 </td>
universe@109 89 <td>
universe@109 90 <fmt:message key="version.status.${versionInfo.version.status}"/>
universe@109 91 </td>
universe@109 92 <td class="hright">${versionInfo.resolvedTotal.open}</td>
universe@109 93 <td class="hright">${versionInfo.resolvedTotal.active}</td>
universe@109 94 <td class="hright">${versionInfo.resolvedTotal.done}</td>
universe@109 95 <td class="hright">${versionInfo.reportedTotal.open}</td>
universe@109 96 <td class="hright">${versionInfo.reportedTotal.active}</td>
universe@109 97 <td class="hright">${versionInfo.reportedTotal.done}</td>
universe@109 98 </tr>
universe@109 99 </c:forEach>
universe@109 100 </tbody>
universe@109 101 </table>

mercurial