src/main/webapp/WEB-INF/jsp/project-details.jsp

changeset 75
33b6843fdf8a
parent 74
91d1fc2a3a14
child 78
bb4c52bf3439
--- a/src/main/webapp/WEB-INF/jsp/project-details.jsp	Fri May 22 17:26:27 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/project-details.jsp	Fri May 22 21:23:57 2020 +0200
@@ -66,8 +66,8 @@
 <table id="issue-list" class="datatable medskip">
     <thead>
     <tr>
-        <th></th>
         <th><fmt:message key="thead.issue.subject"/></th>
+        <th><fmt:message key="thead.issue.assignee"/></th>
         <th><fmt:message key="thead.issue.category"/></th>
         <th><fmt:message key="thead.issue.status"/></th>
         <th><fmt:message key="thead.issue.created"/></th>
@@ -76,5 +76,38 @@
         <!-- TODO: add other information -->
     </tr>
     </thead>
-    <!-- TODO: add actual list -->
+    <tbody>
+    <c:forEach var="issue" items="${issues}">
+        <tr>
+            <td>
+                <a href="./projects/issues/edit?id=${issue.id}">
+                <c:out value="${issue.subject}" />
+                </a>
+            </td>
+            <td>
+                <c:if test="${not empty issue.assignee}">
+                    <c:out value="${issue.assignee.shortDisplayname}" />
+                </c:if>
+                <c:if test="${empty issue.assignee}">
+                    <fmt:message key="placeholder.null-assignee" />
+                </c:if>
+            </td>
+            <td>
+                <fmt:message key="issue.category.${issue.category}" />
+            </td>
+            <td>
+                <fmt:message key="issue.status.${issue.status}" />
+            </td>
+            <td>
+                <fmt:formatDate value="${issue.created}" type="BOTH"/>
+            </td>
+            <td>
+                <fmt:formatDate value="${issue.updated}" type="BOTH"/>
+            </td>
+            <td>
+                <fmt:formatDate value="${issue.eta}" />
+            </td>
+        </tr>
+    </c:forEach>
+    </tbody>
 </table>

mercurial