src/main/webapp/WEB-INF/jsp/project-details.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
child 268
ca5501d851fa
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 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@47 28 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@178 29 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
universe@47 30
universe@184 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetails" scope="request" />
universe@47 32
universe@99 33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
universe@184 34 <c:set var="component" scope="page" value="${viewmodel.component}"/>
universe@184 35 <c:set var="version" scope="page" value="${viewmodel.version}"/>
universe@115 36 <%@include file="../jspf/project-header.jspf"%>
universe@81 37
universe@266 38 <div>
universe@184 39 <a href="./projects/${project.node}/issues/${empty version ? '-' : version.node}/${empty component ? '-' : component.node}/-/create" class="button"><fmt:message key="button.issue.create"/></a>
universe@266 40 <button onclick="toggleProjectDetails()" id="toggle-details-button"><fmt:message key="button.project.details"/></button>
universe@47 41 </div>
universe@47 42
universe@86 43 <h2><fmt:message key="progress" /></h2>
universe@86 44
universe@99 45 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
universe@115 46 <%@include file="../jspf/issue-summary.jspf"%>
universe@86 47
universe@134 48 <c:choose>
universe@184 49 <c:when test="${empty viewmodel.versionInfo}">
universe@134 50 <h2>
universe@184 51 <fmt:message key="issues" />
universe@134 52 </h2>
universe@184 53 <c:set var="summary" value="${viewmodel.issueSummary}"/>
universe@184 54 <c:set var="issues" value="${viewmodel.issues}"/>
universe@134 55 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 56 <c:if test="${not empty issues}">
universe@134 57 <%@include file="../jspf/issue-list.jspf"%>
universe@134 58 </c:if>
universe@134 59 </c:when>
universe@134 60 <c:otherwise>
universe@184 61 <c:set var="versionInfo" value="${viewmodel.versionInfo}"/>
universe@134 62 <h2>
universe@181 63 <fmt:message key="version" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/>
universe@225 64 <c:if test="${not empty versionInfo.version.releaseOrEolDate}">
universe@225 65 (<fmt:formatDate type="date" value="${versionInfo.version.releaseOrEolDate}"/>)
universe@225 66 </c:if>
universe@134 67 </h2>
universe@70 68
universe@134 69 <h3><fmt:message key="issues.resolved"/> </h3>
universe@134 70 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
universe@134 71 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 72 <c:set var="issues" value="${versionInfo.resolved}"/>
universe@134 73 <c:if test="${not empty issues}">
universe@134 74 <%@include file="../jspf/issue-list.jspf"%>
universe@134 75 </c:if>
universe@99 76
universe@134 77 <c:set var="issues" value="${versionInfo.reported}"/>
universe@134 78 <c:if test="${not empty issues}">
universe@134 79 <h3><fmt:message key="issues.reported"/> </h3>
universe@134 80 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
universe@134 81 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 82 <%@include file="../jspf/issue-list.jspf"%>
universe@134 83 </c:if>
universe@134 84 </c:otherwise>
universe@134 85 </c:choose>

mercurial