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

Wed, 06 Jan 2021 15:39:56 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 06 Jan 2021 15:39:56 +0100
changeset 180
009700915269
parent 178
88207b860cba
child 181
502a10e24b85
permissions
-rw-r--r--

merge resource bundles

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@134 27 <%@page pageEncoding="UTF-8" import="de.uapcore.lightpit.viewmodel.ProjectView" %>
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@178 30 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
universe@47 31
universe@99 32 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetailsView" scope="request" />
universe@47 33
universe@99 34 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
universe@134 35 <c:set var="component" scope="page" value="${viewmodel.componentFilter}"/>
universe@115 36 <%@include file="../jspf/project-header.jspf"%>
universe@81 37
universe@47 38 <div id="tool-area">
universe@178 39 <c:remove var="createIssueParams"/>
universe@178 40 <c:if test="${viewmodel.versionFilter.id gt 0}">
universe@178 41 <c:set var="createIssueParams">&vid=${viewmodel.versionFilter.id}</c:set>
universe@178 42 </c:if>
universe@178 43 <c:if test="${viewmodel.componentFilter.id gt 0}">
universe@178 44 <c:set var="createIssueParams">${createIssueParams}&cid=${viewmodel.componentFilter.id}</c:set>
universe@178 45 </c:if>
universe@178 46 <c:if test="${not empty createIssueParams}">
universe@178 47 <c:set var="createIssueParams">?${fn:substringAfter(createIssueParams, "&")}</c:set>
universe@178 48 </c:if>
universe@178 49 <a href="./projects/${project.node}/create-issue${createIssueParams}" class="button"><fmt:message key="button.issue.create"/></a>
universe@134 50 <c:if test="${viewmodel.versionFilter.id gt 0}">
universe@134 51 <a href="./projects/${project.node}/versions/${viewmodel.versionFilter.node}/edit" class="button"><fmt:message key="button.version.edit"/></a>
universe@105 52 </c:if>
universe@134 53 <a href="./projects/${project.node}/create-version" class="button"><fmt:message key="button.version.create"/></a>
universe@134 54 <c:if test="${viewmodel.componentFilter.id gt 0}">
universe@134 55 <a href="./projects/${project.node}/components/${viewmodel.componentFilter.node}/edit" class="button"><fmt:message key="button.component.edit"/></a>
universe@134 56 </c:if>
universe@134 57 <a href="./projects/${project.node}/create-component" class="button"><fmt:message key="button.component.create"/></a>
universe@47 58 </div>
universe@47 59
universe@86 60 <h2><fmt:message key="progress" /></h2>
universe@86 61
universe@99 62 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
universe@115 63 <%@include file="../jspf/issue-summary.jspf"%>
universe@86 64
universe@134 65 <c:choose>
universe@134 66 <c:when test="${viewmodel.versionFilter eq ProjectView.NO_VERSION or viewmodel.versionFilter eq ProjectView.ALL_VERSIONS}">
universe@134 67 <h2>
universe@134 68 <c:if test="${viewmodel.versionFilter eq ProjectView.NO_VERSION}">
universe@134 69 <fmt:message key="issue.without-version" />
universe@134 70 </c:if>
universe@134 71 <c:if test="${viewmodel.versionFilter ne ProjectView.NO_VERSION}">
universe@134 72 <fmt:message key="issues" />
universe@134 73 </c:if>
universe@134 74 </h2>
universe@134 75 <c:set var="summary" value="${viewmodel.projectDetails.issueSummary}"/>
universe@134 76 <c:set var="issues" value="${viewmodel.projectDetails.issues}"/>
universe@134 77 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 78 <c:if test="${not empty issues}">
universe@134 79 <%@include file="../jspf/issue-list.jspf"%>
universe@134 80 </c:if>
universe@134 81 </c:when>
universe@134 82 <c:otherwise>
universe@134 83 <c:set var="versionInfo" value="${viewmodel.projectDetails.versionInfo}"/>
universe@134 84 <h2>
universe@134 85 <fmt:message key="version.name" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/>
universe@134 86 </h2>
universe@70 87
universe@134 88 <h3><fmt:message key="issues.resolved"/> </h3>
universe@134 89 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
universe@134 90 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 91 <c:set var="issues" value="${versionInfo.resolved}"/>
universe@134 92 <c:if test="${not empty issues}">
universe@134 93 <%@include file="../jspf/issue-list.jspf"%>
universe@134 94 </c:if>
universe@99 95
universe@134 96 <c:set var="issues" value="${versionInfo.reported}"/>
universe@134 97 <c:if test="${not empty issues}">
universe@134 98 <h3><fmt:message key="issues.reported"/> </h3>
universe@134 99 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
universe@134 100 <%@include file="../jspf/issue-summary.jspf"%>
universe@134 101 <%@include file="../jspf/issue-list.jspf"%>
universe@134 102 </c:if>
universe@134 103 </c:otherwise>
universe@134 104 </c:choose>

mercurial