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

changeset 99
a369fb1b3aa2
parent 88
1438e5a22c55
child 101
c34c81b87674
equal deleted inserted replaced
98:5c406eef0e5c 99:a369fb1b3aa2
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.ProjectDetailsView" scope="request" />
32 32
33 <c:set var="project" scope="page" value="${viewmodel.project}"/> 33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
34 <%@include file="../jspf/project-header.jsp"%> 34 <%@include file="../jspf/project-header.jsp"%>
35 35
36 <div id="tool-area"> 36 <div id="tool-area">
37 <a href="./projects/versions/edit" class="button"><fmt:message key="button.version.create"/></a> 37 <a href="./projects/versions/edit" class="button"><fmt:message key="button.version.create"/></a>
38 <a href="./projects/issues/edit?pid=${project.id}" class="button"><fmt:message key="button.issue.create"/></a> 38 <a href="./projects/issues/edit?pid=${project.id}" class="button"><fmt:message key="button.issue.create"/></a>
39 </div> 39 </div>
40 40
41 <h2><fmt:message key="progress" /></h2> 41 <h2><fmt:message key="progress" /></h2>
42 42
43 <c:set var="summary" value="${viewmodel.issuesTotal}" /> 43 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
44 <%@include file="../jspf/issue-summary.jsp"%> 44 <%@include file="../jspf/issue-summary.jsp"%>
45 45
46 <h2><fmt:message key="issue.without-version" /></h2> 46 <h2><fmt:message key="issue.without-version" /></h2>
47 47
48 <c:set var="issues" value="${viewmodel.issuesWithoutVersion}"/> 48 <c:set var="issues" value="${viewmodel.projectDetails.issuesWithoutVersion}"/>
49 <c:set var="summary" value="${viewmodel.issuesWithoutVersionTotal}" /> 49 <c:set var="summary" value="${viewmodel.projectDetails.issuesWithoutVersionTotal}" />
50 <%@include file="../jspf/issue-summary.jsp"%> 50 <%@include file="../jspf/issue-summary.jsp"%>
51 <%@include file="../jspf/issue-list.jsp"%> 51 <%@include file="../jspf/issue-list.jsp"%>
52 52
53 <c:forEach var="versionInfo" items="${viewmodel.versionInfos}"> 53 <c:forEach var="versionInfo" items="${viewmodel.projectDetails.versionInfos}">
54 <h2> 54 <h2>
55 <fmt:message key="version.label" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/> 55 <fmt:message key="version.label" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/>
56 (<a href="./projects/versions/view?vid=${versionInfo.version.id}"><fmt:message key="version.open" /></a>)
57 </h2> 56 </h2>
58 57
59 <h3><fmt:message key="issues.resolved"/> </h3> 58 <h3><fmt:message key="issues.resolved"/> </h3>
60 <c:set var="summary" value="${versionInfo.resolvedTotal}"/> 59 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
60 <%@include file="../jspf/issue-summary.jsp"%>
61 <c:set var="issues" value="${versionInfo.resolved}"/> 61 <c:set var="issues" value="${versionInfo.resolved}"/>
62 <c:if test="${not empty issues}">
63 <%@include file="../jspf/issue-list.jsp"%>
64 </c:if>
65
66 <h3><fmt:message key="issues.reported"/> </h3>
67 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
62 <%@include file="../jspf/issue-summary.jsp"%> 68 <%@include file="../jspf/issue-summary.jsp"%>
69 <c:set var="issues" value="${versionInfo.reported}"/>
63 <c:if test="${not empty issues}"> 70 <c:if test="${not empty issues}">
64 <%@include file="../jspf/issue-list.jsp"%> 71 <%@include file="../jspf/issue-list.jsp"%>
65 </c:if> 72 </c:if>
66 </c:forEach> 73 </c:forEach>

mercurial