Sun, 21 Jun 2020 12:03:43 +0200
adds Edit Version button that replaces the pencil icon
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@86 | 31 | <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionView" scope="request"/> |
universe@86 | 32 | <c:set var="version" scope="page" value="${viewmodel.versionInfo.version}"/> |
universe@47 | 33 | |
universe@86 | 34 | <c:set var="project" scope="page" value="${version.project}"/> |
universe@86 | 35 | <%@include file="../jspf/project-header.jsp"%> |
universe@47 | 36 | |
universe@47 | 37 | |
universe@47 | 38 | <div id="tool-area"> |
universe@86 | 39 | <a href="./projects/issues/edit?pid=${project.id}" class="button"><fmt:message key="button.issue.create"/></a> |
universe@91 | 40 | <a href="./projects/versions/edit?vid=${version.id}" class="button"><fmt:message key="button.version.edit"/></a> |
universe@47 | 41 | </div> |
universe@47 | 42 | |
universe@86 | 43 | <h2> |
universe@86 | 44 | <fmt:message key="version.label" /> <c:out value="${version.name}" /> - <fmt:message key="version.status.${version.status}"/> |
universe@86 | 45 | </h2> |
universe@86 | 46 | |
universe@88 | 47 | <c:if test="${not empty viewmodel.versionInfo.resolved}"> |
universe@88 | 48 | <h3><fmt:message key="issues.resolved"/> </h3> |
universe@88 | 49 | <c:set var="summary" value="${viewmodel.versionInfo.resolvedTotal}"/> |
universe@88 | 50 | <c:set var="issues" value="${viewmodel.versionInfo.resolved}"/> |
universe@88 | 51 | <%@include file="../jspf/issue-summary.jsp"%> |
universe@88 | 52 | <%@include file="../jspf/issue-list.jsp"%> |
universe@88 | 53 | </c:if> |
universe@86 | 54 | |
universe@88 | 55 | <c:if test="${not empty viewmodel.versionInfo.reported}"> |
universe@88 | 56 | <h3><fmt:message key="issues.reported"/> </h3> |
universe@88 | 57 | <c:set var="summary" value="${viewmodel.versionInfo.reportedTotal}"/> |
universe@88 | 58 | <c:set var="issues" value="${viewmodel.versionInfo.reported}"/> |
universe@88 | 59 | <%@include file="../jspf/issue-summary.jsp"%> |
universe@88 | 60 | <%@include file="../jspf/issue-list.jsp"%> |
universe@88 | 61 | </c:if> |
universe@86 | 62 |