Tue, 03 Aug 2021 15:10:43 +0200
#154 improves issue view
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 | <%@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@134 | 31 | <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ComponentsView" scope="request" /> |
universe@47 | 32 | |
universe@99 | 33 | <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> |
universe@134 | 34 | |
universe@115 | 35 | <%@include file="../jspf/project-header.jspf"%> |
universe@81 | 36 | |
universe@47 | 37 | <div id="tool-area"> |
universe@184 | 38 | <a href="./projects/${project.node}/components/-/create" class="button"><fmt:message key="button.component.create"/></a> |
universe@184 | 39 | <a href="./projects/${project.node}/issues/-/-/-/create" class="button"><fmt:message key="button.issue.create"/></a> |
universe@47 | 40 | </div> |
universe@47 | 41 | |
universe@86 | 42 | <h2><fmt:message key="progress" /></h2> |
universe@86 | 43 | |
universe@99 | 44 | <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" /> |
universe@115 | 45 | <%@include file="../jspf/issue-summary.jspf"%> |
universe@86 | 46 | |
universe@109 | 47 | <table id="version-list" class="datatable medskip fullwidth"> |
universe@109 | 48 | <colgroup> |
universe@109 | 49 | <col> |
universe@134 | 50 | <col width="20%"> |
universe@134 | 51 | <col width="44%"> |
universe@110 | 52 | <col width="12%"> |
universe@110 | 53 | <col width="12%"> |
universe@110 | 54 | <col width="12%"> |
universe@109 | 55 | </colgroup> |
universe@109 | 56 | <thead> |
universe@109 | 57 | <tr> |
universe@134 | 58 | <th colspan="3"></th> |
universe@109 | 59 | <th colspan="3" class="hcenter"> |
universe@134 | 60 | <fmt:message key="issues"/> |
universe@109 | 61 | </th> |
universe@109 | 62 | </tr> |
universe@109 | 63 | <tr> |
universe@109 | 64 | <th></th> |
universe@181 | 65 | <th><fmt:message key="component"/></th> |
universe@181 | 66 | <th><fmt:message key="description"/></th> |
universe@109 | 67 | <th class="hcenter"><fmt:message key="issues.open" /></th> |
universe@109 | 68 | <th class="hcenter"><fmt:message key="issues.active" /></th> |
universe@109 | 69 | <th class="hcenter"><fmt:message key="issues.done" /></th> |
universe@109 | 70 | </tr> |
universe@109 | 71 | </thead> |
universe@109 | 72 | <tbody> |
universe@134 | 73 | <c:forEach var="componentInfo" items="${viewmodel.componentInfos}" > |
universe@109 | 74 | <tr> |
universe@134 | 75 | <td rowspan="2" style="width: 2em;"><a href="./projects/${project.node}/components/${componentInfo.component.node}/edit">✎</a></td> |
universe@114 | 76 | <td rowspan="2"> |
universe@134 | 77 | <div class="navmenu-icon" style="background-color: ${componentInfo.component.color}"></div> |
universe@184 | 78 | <a href="./projects/${project.node}/issues/-/${componentInfo.component.node}/"> |
universe@134 | 79 | <c:out value="${componentInfo.component.name}"/> |
universe@109 | 80 | </a> |
universe@109 | 81 | </td> |
universe@134 | 82 | <td rowspan="2"><c:out value="${componentInfo.component.description}"/> </td> |
universe@134 | 83 | <td class="hright">${componentInfo.issueSummary.open}</td> |
universe@134 | 84 | <td class="hright">${componentInfo.issueSummary.active}</td> |
universe@134 | 85 | <td class="hright">${componentInfo.issueSummary.done}</td> |
universe@109 | 86 | </tr> |
universe@114 | 87 | <tr> |
universe@114 | 88 | <td colspan="3"> |
universe@134 | 89 | <c:set var="summary" value="${componentInfo.issueSummary}"/> |
universe@114 | 90 | <%@include file="../jspf/issue-progress.jspf" %> |
universe@114 | 91 | </td> |
universe@114 | 92 | </tr> |
universe@109 | 93 | </c:forEach> |
universe@109 | 94 | </tbody> |
universe@109 | 95 | </table> |