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

Tue, 03 Jan 2023 18:19:40 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 03 Jan 2023 18:19:40 +0100
changeset 266
65c72e65ff67
parent 225
87328572e36f
permissions
-rw-r--r--

simplify project-details view

universe@47 1 <%--
universe@47 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@47 3
universe@180 4 Copyright 2021 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@225 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@225 34 <%@include file="../jspf/project-header.jspf" %>
universe@81 35
universe@266 36 <div>
universe@266 37 <a href="./projects/${project.node}/issues/-/-/-/create" class="button"><fmt:message key="button.issue.create"/></a>
universe@266 38 <button onclick="toggleProjectDetails()" id="toggle-details-button"><fmt:message key="button.project.details"/></button>
universe@184 39 <a href="./projects/${project.node}/versions/-/create" class="button"><fmt:message key="button.version.create"/></a>
universe@47 40 </div>
universe@47 41
universe@225 42 <h2><fmt:message key="progress"/></h2>
universe@86 43
universe@225 44 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}"/>
universe@225 45 <%@include file="../jspf/issue-summary.jspf" %>
universe@86 46
universe@109 47 <table id="version-list" class="datatable medskip fullwidth">
universe@109 48 <colgroup>
universe@109 49 <col>
universe@225 50 <col style="width: 28%">
universe@225 51 <col style="width: 12%">
universe@225 52 <col style="width: 12%">
universe@225 53 <col style="width: 12%">
universe@225 54 <col style="width: 12%">
universe@225 55 <col style="width: 12%">
universe@225 56 <col style="width: 12%">
universe@109 57 </colgroup>
universe@109 58 <thead>
universe@109 59 <tr>
universe@112 60 <th colspan="2"></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@181 70 <th><fmt:message key="version"/></th>
universe@225 71 <th class="hcenter"><fmt:message key="issues.open"/></th>
universe@225 72 <th class="hcenter"><fmt:message key="issues.active"/></th>
universe@225 73 <th class="hcenter"><fmt:message key="issues.done"/></th>
universe@225 74 <th class="hcenter"><fmt:message key="issues.open"/></th>
universe@225 75 <th class="hcenter"><fmt:message key="issues.active"/></th>
universe@225 76 <th class="hcenter"><fmt:message key="issues.done"/></th>
universe@109 77 </tr>
universe@109 78 </thead>
universe@109 79 <tbody>
universe@225 80 <c:forEach var="versionInfo" items="${viewmodel.versionInfos}">
universe@109 81 <tr>
universe@225 82 <td rowspan="2" style="width: 2em;"><a
universe@225 83 href="./projects/${project.node}/versions/${versionInfo.version.node}/edit">&#x270e;</a></td>
universe@114 84 <td rowspan="2">
universe@184 85 <a href="./projects/${project.node}/issues/${versionInfo.version.node}/-/">
universe@109 86 <c:out value="${versionInfo.version.name}"/>
universe@109 87 </a>
universe@225 88 <div class="version-tag version-${versionInfo.version.status}"
universe@225 89 <c:if test="${not empty versionInfo.version.releaseOrEolDate}">
universe@225 90 title="<fmt:formatDate type="date" value="${versionInfo.version.releaseOrEolDate}"/>"
universe@225 91 </c:if>
universe@225 92 >
universe@171 93 <fmt:message key="version.status.${versionInfo.version.status}"/>
universe@110 94 </div>
universe@109 95 </td>
universe@109 96 <td class="hright">${versionInfo.resolvedTotal.open}</td>
universe@109 97 <td class="hright">${versionInfo.resolvedTotal.active}</td>
universe@109 98 <td class="hright">${versionInfo.resolvedTotal.done}</td>
universe@109 99 <td class="hright">${versionInfo.reportedTotal.open}</td>
universe@109 100 <td class="hright">${versionInfo.reportedTotal.active}</td>
universe@109 101 <td class="hright">${versionInfo.reportedTotal.done}</td>
universe@109 102 </tr>
universe@114 103 <tr>
universe@114 104 <td colspan="3">
universe@114 105 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
universe@114 106 <%@include file="../jspf/issue-progress.jspf" %>
universe@114 107 </td>
universe@114 108 <td colspan="3">
universe@114 109 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
universe@114 110 <%@include file="../jspf/issue-progress.jspf" %>
universe@114 111 </td>
universe@114 112 </tr>
universe@225 113 </c:forEach>
universe@109 114 </tbody>
universe@109 115 </table>

mercurial