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

changeset 86
0a658e53177c
parent 82
4ec7f2600c83
child 109
2e0669e814ff
equal deleted inserted replaced
85:3d16ad54b3dc 86:0a658e53177c
26 --%> 26 --%>
27 <%@page pageEncoding="UTF-8" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
30 30
31 <jsp:useBean id="issues" type="java.util.List<de.uapcore.lightpit.entities.Issue>" scope="request"/> 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssuesView" scope="request"/>
32 <c:set var="project" scope="page" value="${viewmodel.project}"/>
33 <c:set var="version" scope="page" value="${viewmodel.version}"/>
34 <%@include file="../jspf/project-header.jsp"%>
35
36 <c:if test="${not empty version}">
37 <h2>
38 <fmt:message key="version.label" /> <c:out value="${version.name}" /> - <fmt:message key="version.status.${version.status}"/>
39 <a href="./projects/versions/edit?vid=${version.id}">&#x270e;</a>
40 </h2>
41 </c:if>
32 42
33 <div id="tool-area"> 43 <div id="tool-area">
34 <div> 44 <div>
35 <a href="./projects/issues/edit" class="button"><fmt:message key="button.issue.create"/></a> 45 <a href="./projects/issues/edit" class="button"><fmt:message key="button.issue.create"/></a>
46 <c:if test="${not empty version}">
47 <a href="./projects/issues/?pid=${project.id}&vid=-1" class="button"><fmt:message key="button.issue.all"/></a>
48 </c:if>
36 </div> 49 </div>
37 </div> 50 </div>
38 51
39 <table id="issue-list" class="datatable medskip"> 52 <c:set var="issues" value="${viewmodel.issues}"/>
40 <thead> 53 <%@include file="../jspf/issue-list.jsp"%>
41 <tr>
42 <th><fmt:message key="issue.subject"/></th>
43 <th><fmt:message key="issue.assignee"/></th>
44 <th><fmt:message key="issue.category"/></th>
45 <th><fmt:message key="issue.status"/></th>
46 <th><fmt:message key="issue.created"/></th>
47 <th><fmt:message key="issue.updated"/></th>
48 <th><fmt:message key="issue.eta"/></th>
49 </tr>
50 </thead>
51 <tbody>
52 <c:forEach var="issue" items="${issues}">
53 <tr>
54 <td>
55 <span class="phase-${issue.status.phase}">
56 <a href="./projects/issues/edit?id=${issue.id}">
57 <c:out value="${issue.subject}" />
58 </a>
59 </span>
60 </td>
61 <td>
62 <c:if test="${not empty issue.assignee}">
63 <c:out value="${issue.assignee.shortDisplayname}" />
64 </c:if>
65 <c:if test="${empty issue.assignee}">
66 <fmt:message key="placeholder.null-assignee" />
67 </c:if>
68 </td>
69 <td>
70 <fmt:message key="issue.category.${issue.category}" />
71 </td>
72 <td>
73 <fmt:message key="issue.status.${issue.status}" />
74 </td>
75 <td>
76 <fmt:formatDate value="${issue.created}" type="BOTH"/>
77 </td>
78 <td>
79 <fmt:formatDate value="${issue.updated}" type="BOTH"/>
80 </td>
81 <td>
82 <fmt:formatDate value="${issue.eta}" />
83 </td>
84 </tr>
85 </c:forEach>
86 </tbody>
87 </table>

mercurial