Fri, 09 Oct 2020 11:55:39 +0200
adds tooltips to versions in nav menu
universe@47 | 1 | <%-- |
universe@47 | 2 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@47 | 3 | |
universe@47 | 4 | Copyright 2018 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@99 | 31 | <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectDetailsView" scope="request" /> |
universe@47 | 32 | |
universe@99 | 33 | <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> |
universe@115 | 34 | <%@include file="../jspf/project-header.jspf"%> |
universe@81 | 35 | |
universe@47 | 36 | <div id="tool-area"> |
universe@105 | 37 | <c:if test="${not empty viewmodel.versionFilter}"> |
universe@105 | 38 | <a href="./projects/versions/edit?vid=${viewmodel.versionFilter.id}" class="button"><fmt:message key="button.version.edit"/></a> |
universe@105 | 39 | </c:if> |
universe@110 | 40 | <a href="./projects/versions/edit?vid=-1" class="button"><fmt:message key="button.version.create"/></a> |
universe@86 | 41 | <a href="./projects/issues/edit?pid=${project.id}" class="button"><fmt:message key="button.issue.create"/></a> |
universe@47 | 42 | </div> |
universe@47 | 43 | |
universe@86 | 44 | <h2><fmt:message key="progress" /></h2> |
universe@86 | 45 | |
universe@99 | 46 | <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" /> |
universe@115 | 47 | <%@include file="../jspf/issue-summary.jspf"%> |
universe@86 | 48 | |
universe@105 | 49 | <c:if test="${not empty viewmodel.versionFilter}"> |
universe@105 | 50 | <c:set var="versionInfo" value="${viewmodel.projectDetails.versionInfo}"/> |
universe@80 | 51 | <h2> |
universe@109 | 52 | <fmt:message key="version.name" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/> |
universe@80 | 53 | </h2> |
universe@70 | 54 | |
universe@86 | 55 | <h3><fmt:message key="issues.resolved"/> </h3> |
universe@86 | 56 | <c:set var="summary" value="${versionInfo.resolvedTotal}"/> |
universe@115 | 57 | <%@include file="../jspf/issue-summary.jspf"%> |
universe@86 | 58 | <c:set var="issues" value="${versionInfo.resolved}"/> |
universe@99 | 59 | <c:if test="${not empty issues}"> |
universe@115 | 60 | <%@include file="../jspf/issue-list.jspf"%> |
universe@99 | 61 | </c:if> |
universe@99 | 62 | |
universe@99 | 63 | <c:set var="issues" value="${versionInfo.reported}"/> |
universe@88 | 64 | <c:if test="${not empty issues}"> |
universe@101 | 65 | <h3><fmt:message key="issues.reported"/> </h3> |
universe@101 | 66 | <c:set var="summary" value="${versionInfo.reportedTotal}"/> |
universe@115 | 67 | <%@include file="../jspf/issue-summary.jspf"%> |
universe@115 | 68 | <%@include file="../jspf/issue-list.jspf"%> |
universe@88 | 69 | </c:if> |
universe@105 | 70 | </c:if> |
universe@105 | 71 | <c:if test="${empty viewmodel.versionFilter}"> |
universe@105 | 72 | <h2> |
universe@105 | 73 | <fmt:message key="issue.without-version" /> |
universe@105 | 74 | </h2> |
universe@105 | 75 | <c:set var="summary" value="${viewmodel.projectDetails.issueSummary}"/> |
universe@105 | 76 | <c:set var="issues" value="${viewmodel.projectDetails.issues}"/> |
universe@115 | 77 | <%@include file="../jspf/issue-summary.jspf"%> |
universe@105 | 78 | <c:if test="${not empty issues}"> |
universe@115 | 79 | <%@include file="../jspf/issue-list.jspf"%> |
universe@105 | 80 | </c:if> |
universe@105 | 81 | </c:if> |