src/main/webapp/WEB-INF/jsp/versions.jsp

Fri, 09 Oct 2020 11:41:35 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 09 Oct 2020 11:41:35 +0200
changeset 115
c27638a50c92
parent 114
dbd5c60c29e6
child 131
67df332e3146
permissions
-rw-r--r--

proper file extensions for JSP fragments

universe@47 1 <%--
universe@47 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@47 3
universe@109 4 Copyright 2020 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@109 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionsView" 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@110 37 <a href="./projects/versions/edit?vid=-1" class="button"><fmt:message key="button.version.create"/></a>
universe@86 38 <a href="./projects/issues/edit?pid=${project.id}" class="button"><fmt:message key="button.issue.create"/></a>
universe@47 39 </div>
universe@47 40
universe@86 41 <h2><fmt:message key="progress" /></h2>
universe@86 42
universe@99 43 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
universe@115 44 <%@include file="../jspf/issue-summary.jspf"%>
universe@86 45
universe@109 46 <table id="version-list" class="datatable medskip fullwidth">
universe@109 47 <colgroup>
universe@109 48 <col>
universe@110 49 <col width="28%">
universe@110 50 <col width="12%">
universe@110 51 <col width="12%">
universe@110 52 <col width="12%">
universe@110 53 <col width="12%">
universe@110 54 <col width="12%">
universe@110 55 <col width="12%">
universe@109 56 </colgroup>
universe@109 57 <thead>
universe@109 58 <tr>
universe@112 59 <th colspan="2"></th>
universe@109 60 <th colspan="3" class="hcenter">
universe@109 61 <fmt:message key="issues.resolved"/>
universe@109 62 </th>
universe@109 63 <th colspan="3" class="hcenter">
universe@109 64 <fmt:message key="issues.reported"/>
universe@109 65 </th>
universe@109 66 </tr>
universe@109 67 <tr>
universe@109 68 <th></th>
universe@109 69 <th><fmt:message key="version.name"/></th>
universe@109 70 <th class="hcenter"><fmt:message key="issues.open" /></th>
universe@109 71 <th class="hcenter"><fmt:message key="issues.active" /></th>
universe@109 72 <th class="hcenter"><fmt:message key="issues.done" /></th>
universe@109 73 <th class="hcenter"><fmt:message key="issues.open" /></th>
universe@109 74 <th class="hcenter"><fmt:message key="issues.active" /></th>
universe@109 75 <th class="hcenter"><fmt:message key="issues.done" /></th>
universe@109 76 </tr>
universe@109 77 </thead>
universe@109 78 <tbody>
universe@109 79 <c:forEach var="versionInfo" items="${viewmodel.versionInfo}" >
universe@109 80 <tr>
universe@114 81 <td rowspan="2" style="width: 2em;"><a href="./projects/versions/edit?vid=${versionInfo.version.id}">&#x270e;</a></td>
universe@114 82 <td rowspan="2">
universe@109 83 <a href="projects/view?pid=${viewmodel.projectInfo.project.id}&vid=${versionInfo.version.id}">
universe@109 84 <c:out value="${versionInfo.version.name}"/>
universe@109 85 </a>
universe@110 86 <div class="version-tag version-${versionInfo.version.status}">
universe@110 87 <c:out value="${versionInfo.version.status}"/>
universe@110 88 </div>
universe@109 89 </td>
universe@109 90 <td class="hright">${versionInfo.resolvedTotal.open}</td>
universe@109 91 <td class="hright">${versionInfo.resolvedTotal.active}</td>
universe@109 92 <td class="hright">${versionInfo.resolvedTotal.done}</td>
universe@109 93 <td class="hright">${versionInfo.reportedTotal.open}</td>
universe@109 94 <td class="hright">${versionInfo.reportedTotal.active}</td>
universe@109 95 <td class="hright">${versionInfo.reportedTotal.done}</td>
universe@109 96 </tr>
universe@114 97 <tr>
universe@114 98 <td colspan="3">
universe@114 99 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
universe@114 100 <%@include file="../jspf/issue-progress.jspf" %>
universe@114 101 </td>
universe@114 102 <td colspan="3">
universe@114 103 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
universe@114 104 <%@include file="../jspf/issue-progress.jspf" %>
universe@114 105 </td>
universe@114 106 </tr>
universe@109 107 </c:forEach>
universe@109 108 </tbody>
universe@109 109 </table>

mercurial