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="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectIndexView" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectView" scope="request"/> |
32 |
32 |
33 <c:if test="${empty viewmodel.projects}"> |
33 <c:if test="${empty viewmodel.projectList}"> |
34 <div class="info-box"> |
34 <div class="info-box"> |
35 <fmt:message key="no-projects"/> |
35 <fmt:message key="no-projects"/> |
36 </div> |
36 </div> |
37 </c:if> |
37 </c:if> |
38 |
38 |
39 <div id="tool-area"> |
39 <div id="tool-area"> |
40 <a href="./projects/edit" class="button"><fmt:message key="button.create"/></a> |
40 <a href="./projects/edit" class="button"><fmt:message key="button.create"/></a> |
41 </div> |
41 </div> |
42 |
42 |
43 <c:if test="${not empty viewmodel.projects}"> |
43 <c:if test="${not empty viewmodel.projectList}"> |
44 <table id="project-list" class="datatable medskip"> |
44 <table id="project-list" class="datatable medskip"> |
45 <colgroup> |
45 <colgroup> |
46 <col> |
46 <col> |
47 <col width="20%"> |
47 <col width="20%"> |
48 <col width="50%"> |
48 <col width="50%"> |
63 <th class="hcenter"><fmt:message key="issues.active"/></th> |
63 <th class="hcenter"><fmt:message key="issues.active"/></th> |
64 <th class="hcenter"><fmt:message key="issues.done"/></th> |
64 <th class="hcenter"><fmt:message key="issues.done"/></th> |
65 </tr> |
65 </tr> |
66 </thead> |
66 </thead> |
67 <tbody> |
67 <tbody> |
68 <c:forEach var="projectInfo" items="${viewmodel.projects}"> |
68 <c:forEach var="projectInfo" items="${viewmodel.projectList}"> |
69 <c:set var="project" scope="page" value="${projectInfo.project}"/> |
69 <c:set var="project" scope="page" value="${projectInfo.project}"/> |
70 <tr class="nowrap"> |
70 <tr class="nowrap"> |
71 <td style="width: 2em;"><a href="./projects/edit?pid=${project.id}">✎</a></td> |
71 <td style="width: 2em;"><a href="./projects/edit?pid=${project.id}">✎</a></td> |
72 <td><a href="./projects/view?pid=${project.id}"><c:out value="${project.name}"/></a> |
72 <td><a href="./projects/view?pid=${project.id}"><c:out value="${project.name}"/></a> |
73 </td> |
73 </td> |
77 value="${project.repoUrl}"/></a> |
77 value="${project.repoUrl}"/></a> |
78 </c:if> |
78 </c:if> |
79 </td> |
79 </td> |
80 <td class="hright"> |
80 <td class="hright"> |
81 <c:if test="${not empty projectInfo.latestVersion}"> |
81 <c:if test="${not empty projectInfo.latestVersion}"> |
82 <a href="./projects/versions/view?vid=${projectInfo.latestVersion.id}"><c:out value="${projectInfo.latestVersion.name}"/></a> |
82 <a href="./projects/view?pid=${project.id}&vid=${projectInfo.latestVersion.id}"><c:out value="${projectInfo.latestVersion.name}"/></a> |
83 </c:if> |
83 </c:if> |
84 </td> |
84 </td> |
85 <td class="hright"> |
85 <td class="hright"> |
86 <c:if test="${not empty projectInfo.nextVersion}"> |
86 <c:if test="${not empty projectInfo.nextVersion}"> |
87 <a href="./projects/versions/view?vid=${projectInfo.nextVersion.id}"><c:out value="${projectInfo.nextVersion.name}"/></a> |
87 <a href="./projects/view?pid=${project.id}&vid=${projectInfo.nextVersion.id}"><c:out value="${projectInfo.nextVersion.name}"/></a> |
88 </c:if> |
88 </c:if> |
89 </td> |
89 </td> |
90 <td class="hright">${projectInfo.issueSummary.open}</td> |
90 <td class="hright">${projectInfo.issueSummary.open}</td> |
91 <td class="hright">${projectInfo.issueSummary.active}</td> |
91 <td class="hright">${projectInfo.issueSummary.active}</td> |
92 <td class="hright">${projectInfo.issueSummary.done}</td> |
92 <td class="hright">${projectInfo.issueSummary.done}</td> |