src/main/webapp/WEB-INF/jsp/project-details.jsp

Mon, 30 Oct 2023 14:44:36 +0100

author
Mike Becker <universe@uap-core.de>
date
Mon, 30 Oct 2023 14:44:36 +0100
changeset 292
703591e739f4
parent 268
ca5501d851fa
child 295
1c31921664c4
permissions
-rw-r--r--

add possibility to show issues w/o version or component - fixes #335

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@292 34 <c:set var="component" scope="page" value="${viewmodel.componentDetails}"/>
universe@292 35 <c:set var="issuesHref" value="./${viewmodel.pathInfos.issuesHref}"/>
universe@115 36 <%@include file="../jspf/project-header.jspf"%>
universe@81 37
universe@266 38 <div>
universe@292 39 <a href=".${issuesHref}-/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@268 43 <h3><fmt:message key="issue.filter" /></h3>
universe@268 44 <%@include file="../jspf/issue-filter.jspf"%>
universe@268 45
universe@86 46 <h2><fmt:message key="progress" /></h2>
universe@86 47
universe@99 48 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
universe@115 49 <%@include file="../jspf/issue-summary.jspf"%>
universe@86 50
universe@134 51 <c:choose>
universe@184 52 <c:when test="${empty viewmodel.versionInfo}">
universe@134 53 <h2>
universe@184 54 <fmt:message key="issues" />
universe@134 55 </h2>
universe@184 56 <c:set var="summary" value="${viewmodel.issueSummary}"/>
universe@184 57 <c:set var="issues" value="${viewmodel.issues}"/>
universe@134 58 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 59 <c:if test="${not empty issues}">
universe@134 60 <%@include file="../jspf/issue-list.jspf"%>
universe@134 61 </c:if>
universe@134 62 </c:when>
universe@134 63 <c:otherwise>
universe@184 64 <c:set var="versionInfo" value="${viewmodel.versionInfo}"/>
universe@134 65 <h2>
universe@181 66 <fmt:message key="version" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/>
universe@225 67 <c:if test="${not empty versionInfo.version.releaseOrEolDate}">
universe@225 68 (<fmt:formatDate type="date" value="${versionInfo.version.releaseOrEolDate}"/>)
universe@225 69 </c:if>
universe@134 70 </h2>
universe@70 71
universe@134 72 <h3><fmt:message key="issues.resolved"/> </h3>
universe@134 73 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
universe@134 74 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 75 <c:set var="issues" value="${versionInfo.resolved}"/>
universe@134 76 <c:if test="${not empty issues}">
universe@134 77 <%@include file="../jspf/issue-list.jspf"%>
universe@134 78 </c:if>
universe@99 79
universe@134 80 <c:set var="issues" value="${versionInfo.reported}"/>
universe@134 81 <c:if test="${not empty issues}">
universe@134 82 <h3><fmt:message key="issues.reported"/> </h3>
universe@134 83 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
universe@134 84 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 85 <%@include file="../jspf/issue-list.jspf"%>
universe@134 86 </c:if>
universe@134 87 </c:otherwise>
universe@134 88 </c:choose>

mercurial