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

changeset 80
27a25f32048e
child 81
1a2e7b5d48f7
equal deleted inserted replaced
79:f64255a88d66 80:27a25f32048e
1 <%--
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
4 Copyright 2018 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="issues" type="java.util.List<de.uapcore.lightpit.entities.Issue>" scope="request"/>
32
33 <div id="tool-area">
34 <div>
35 <a href="./projects/issues/edit" class="button"><fmt:message key="button.issue.create"/></a>
36 </div>
37 </div>
38
39 <table id="issue-list" class="datatable medskip">
40 <thead>
41 <tr>
42 <th><fmt:message key="thead.issue.subject"/></th>
43 <th><fmt:message key="thead.issue.assignee"/></th>
44 <th><fmt:message key="thead.issue.category"/></th>
45 <th><fmt:message key="thead.issue.status"/></th>
46 <th><fmt:message key="thead.issue.created"/></th>
47 <th><fmt:message key="thead.issue.updated"/></th>
48 <th><fmt:message key="thead.issue.eta"/></th>
49 </tr>
50 </thead>
51 <tbody>
52 <c:forEach var="issue" items="${issues}">
53 <tr>
54 <td>
55 <a href="./projects/issues/edit?id=${issue.id}">
56 <c:out value="${issue.subject}" />
57 </a>
58 </td>
59 <td>
60 <c:if test="${not empty issue.assignee}">
61 <c:out value="${issue.assignee.shortDisplayname}" />
62 </c:if>
63 <c:if test="${empty issue.assignee}">
64 <fmt:message key="placeholder.null-assignee" />
65 </c:if>
66 </td>
67 <td>
68 <fmt:message key="issue.category.${issue.category}" />
69 </td>
70 <td>
71 <fmt:message key="issue.status.${issue.status}" />
72 </td>
73 <td>
74 <fmt:formatDate value="${issue.created}" type="BOTH"/>
75 </td>
76 <td>
77 <fmt:formatDate value="${issue.updated}" type="BOTH"/>
78 </td>
79 <td>
80 <fmt:formatDate value="${issue.eta}" />
81 </td>
82 </tr>
83 </c:forEach>
84 </tbody>
85 </table>

mercurial