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

changeset 184
e8eecee6aadf
parent 181
502a10e24b85
child 259
30ec2cf1e495
equal deleted inserted replaced
183:61669abf277f 184:e8eecee6aadf
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.ProjectView" scope="request"/> 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectsView" scope="request"/>
32 32
33 <c:if test="${empty viewmodel.projectList}"> 33 <c:if test="${empty viewmodel.projects}">
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/create" class="button"><fmt:message key="button.project.create"/></a> 40 <a href="./projects/-/create" class="button"><fmt:message key="button.project.create"/></a>
41 </div> 41 </div>
42 42
43 <c:if test="${not empty viewmodel.projectList}"> 43 <c:if test="${not empty viewmodel.projects}">
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.projectList}"> 68 <c:forEach var="projectInfo" items="${viewmodel.projects}">
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/${project.node}/edit">&#x270e;</a></td> 71 <td style="width: 2em;"><a href="./projects/${project.node}/edit">&#x270e;</a></td>
72 <td><a href="./projects/${project.node}/versions/"><c:out value="${project.name}"/></a> 72 <td><a href="./projects/${project.node}"><c:out value="${project.name}"/></a>
73 </td> 73 </td>
74 <td> 74 <td>
75 <c:if test="${not empty project.repoUrl}"> 75 <c:if test="${not empty project.repoUrl}">
76 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out 76 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out
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/${project.node}/all-components/${projectInfo.latestVersion.node}/issues/"><c:out value="${projectInfo.latestVersion.name}"/></a> 82 <a href="./projects/${project.node}/issues/${projectInfo.latestVersion.node}/-/"><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/${project.node}/all-components/${projectInfo.nextVersion.node}/issues/"><c:out value="${projectInfo.nextVersion.name}"/></a> 87 <a href="./projects/${project.node}/issues/${projectInfo.nextVersion.node}/-/"><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>

mercurial