|
1 <%-- |
|
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
|
3 |
|
4 Copyright 2020 Mike Becker. All rights reserved. |
|
5 |
|
6 Redistribution and use in source and binary forms, with or without |
|
7 modification, are permitted provided that the following conditions are met: |
|
8 |
|
9 1. Redistributions of source code must retain the above copyright |
|
10 notice, this list of conditions and the following disclaimer. |
|
11 |
|
12 2. Redistributions in binary form must reproduce the above copyright |
|
13 notice, this list of conditions and the following disclaimer in the |
|
14 documentation and/or other materials provided with the distribution. |
|
15 |
|
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
|
20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|
21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
|
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
|
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
26 --%> |
|
27 <%@page pageEncoding="UTF-8" %> |
|
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
|
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
|
30 |
|
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ComponentsView" scope="request" /> |
|
32 |
|
33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/> |
|
34 |
|
35 <%@include file="../jspf/project-header.jspf"%> |
|
36 |
|
37 <div id="tool-area"> |
|
38 <a href="./projects/${project.id}/create-component" class="button"><fmt:message key="button.component.create"/></a> |
|
39 <a href="./projects/${project.id}/create-issue" class="button"><fmt:message key="button.issue.create"/></a> |
|
40 </div> |
|
41 |
|
42 <h2><fmt:message key="progress" /></h2> |
|
43 |
|
44 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" /> |
|
45 <%@include file="../jspf/issue-summary.jspf"%> |
|
46 |
|
47 <table id="version-list" class="datatable medskip fullwidth"> |
|
48 <colgroup> |
|
49 <col> |
|
50 <col width="20%"> |
|
51 <col width="44%"> |
|
52 <col width="12%"> |
|
53 <col width="12%"> |
|
54 <col width="12%"> |
|
55 </colgroup> |
|
56 <thead> |
|
57 <tr> |
|
58 <th colspan="3"></th> |
|
59 <th colspan="3" class="hcenter"> |
|
60 <fmt:message key="issues"/> |
|
61 </th> |
|
62 </tr> |
|
63 <tr> |
|
64 <th></th> |
|
65 <th><fmt:message key="component.name"/></th> |
|
66 <th><fmt:message key="component.description"/></th> |
|
67 <th class="hcenter"><fmt:message key="issues.open" /></th> |
|
68 <th class="hcenter"><fmt:message key="issues.active" /></th> |
|
69 <th class="hcenter"><fmt:message key="issues.done" /></th> |
|
70 </tr> |
|
71 </thead> |
|
72 <tbody> |
|
73 <c:forEach var="componentInfo" items="${viewmodel.componentInfos}" > |
|
74 <tr> |
|
75 <td rowspan="2" style="width: 2em;"><a href="./projects/${project.node}/components/${componentInfo.component.node}/edit">✎</a></td> |
|
76 <td rowspan="2"> |
|
77 <div class="navmenu-icon" style="background-color: ${componentInfo.component.color}"></div> |
|
78 <a href="./projects/${project.node}/${componentInfo.component.node}/all-versions/issues/"> |
|
79 <c:out value="${componentInfo.component.name}"/> |
|
80 </a> |
|
81 </td> |
|
82 <td rowspan="2"><c:out value="${componentInfo.component.description}"/> </td> |
|
83 <td class="hright">${componentInfo.issueSummary.open}</td> |
|
84 <td class="hright">${componentInfo.issueSummary.active}</td> |
|
85 <td class="hright">${componentInfo.issueSummary.done}</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td colspan="3"> |
|
89 <c:set var="summary" value="${componentInfo.issueSummary}"/> |
|
90 <%@include file="../jspf/issue-progress.jspf" %> |
|
91 </td> |
|
92 </tr> |
|
93 </c:forEach> |
|
94 </tbody> |
|
95 </table> |