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

changeset 134
f47e82cd6077
parent 131
67df332e3146
child 178
88207b860cba
equal deleted inserted replaced
133:ef075cd7ce55 134:f47e82cd6077
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 --%> 26 --%>
27 <%@page pageEncoding="UTF-8" %> 27 <%@page pageEncoding="UTF-8" import="de.uapcore.lightpit.viewmodel.ProjectView" %>
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.ProjectDetailsView" 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.projectInfo.project}"/> 33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
34 <c:set var="component" scope="page" value="${viewmodel.componentFilter}"/>
34 <%@include file="../jspf/project-header.jspf"%> 35 <%@include file="../jspf/project-header.jspf"%>
35 36
36 <div id="tool-area"> 37 <div id="tool-area">
37 <c:if test="${not empty viewmodel.versionFilter}"> 38 <a href="./projects/${project.node}/create-issue" class="button"><fmt:message key="button.issue.create"/></a>
38 <a href="./projects/${project.id}/versions/${viewmodel.versionFilter.id}/edit" class="button"><fmt:message key="button.version.edit"/></a> 39 <c:if test="${viewmodel.versionFilter.id gt 0}">
40 <a href="./projects/${project.node}/versions/${viewmodel.versionFilter.node}/edit" class="button"><fmt:message key="button.version.edit"/></a>
39 </c:if> 41 </c:if>
40 <a href="./projects/${project.id}/create-version" class="button"><fmt:message key="button.version.create"/></a> 42 <a href="./projects/${project.node}/create-version" class="button"><fmt:message key="button.version.create"/></a>
41 <a href="./projects/${project.id}/create-issue" class="button"><fmt:message key="button.issue.create"/></a> 43 <c:if test="${viewmodel.componentFilter.id gt 0}">
44 <a href="./projects/${project.node}/components/${viewmodel.componentFilter.node}/edit" class="button"><fmt:message key="button.component.edit"/></a>
45 </c:if>
46 <a href="./projects/${project.node}/create-component" class="button"><fmt:message key="button.component.create"/></a>
42 </div> 47 </div>
43 48
44 <h2><fmt:message key="progress" /></h2> 49 <h2><fmt:message key="progress" /></h2>
45 50
46 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" /> 51 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
47 <%@include file="../jspf/issue-summary.jspf"%> 52 <%@include file="../jspf/issue-summary.jspf"%>
48 53
49 <c:if test="${not empty viewmodel.versionFilter}"> 54 <c:choose>
50 <c:set var="versionInfo" value="${viewmodel.projectDetails.versionInfo}"/> 55 <c:when test="${viewmodel.versionFilter eq ProjectView.NO_VERSION or viewmodel.versionFilter eq ProjectView.ALL_VERSIONS}">
51 <h2> 56 <h2>
52 <fmt:message key="version.name" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/> 57 <c:if test="${viewmodel.versionFilter eq ProjectView.NO_VERSION}">
53 </h2> 58 <fmt:message key="issue.without-version" />
59 </c:if>
60 <c:if test="${viewmodel.versionFilter ne ProjectView.NO_VERSION}">
61 <fmt:message key="issues" />
62 </c:if>
63 </h2>
64 <c:set var="summary" value="${viewmodel.projectDetails.issueSummary}"/>
65 <c:set var="issues" value="${viewmodel.projectDetails.issues}"/>
66 <%@include file="../jspf/issue-summary.jspf"%>
67 <c:if test="${not empty issues}">
68 <%@include file="../jspf/issue-list.jspf"%>
69 </c:if>
70 </c:when>
71 <c:otherwise>
72 <c:set var="versionInfo" value="${viewmodel.projectDetails.versionInfo}"/>
73 <h2>
74 <fmt:message key="version.name" /> <c:out value="${versionInfo.version.name}" /> - <fmt:message key="version.status.${versionInfo.version.status}"/>
75 </h2>
54 76
55 <h3><fmt:message key="issues.resolved"/> </h3> 77 <h3><fmt:message key="issues.resolved"/> </h3>
56 <c:set var="summary" value="${versionInfo.resolvedTotal}"/> 78 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
57 <%@include file="../jspf/issue-summary.jspf"%> 79 <%@include file="../jspf/issue-summary.jspf"%>
58 <c:set var="issues" value="${versionInfo.resolved}"/> 80 <c:set var="issues" value="${versionInfo.resolved}"/>
59 <c:if test="${not empty issues}"> 81 <c:if test="${not empty issues}">
60 <%@include file="../jspf/issue-list.jspf"%> 82 <%@include file="../jspf/issue-list.jspf"%>
61 </c:if> 83 </c:if>
62 84
63 <c:set var="issues" value="${versionInfo.reported}"/> 85 <c:set var="issues" value="${versionInfo.reported}"/>
64 <c:if test="${not empty issues}"> 86 <c:if test="${not empty issues}">
65 <h3><fmt:message key="issues.reported"/> </h3> 87 <h3><fmt:message key="issues.reported"/> </h3>
66 <c:set var="summary" value="${versionInfo.reportedTotal}"/> 88 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
67 <%@include file="../jspf/issue-summary.jspf"%> 89 <%@include file="../jspf/issue-summary.jspf"%>
68 <%@include file="../jspf/issue-list.jspf"%> 90 <%@include file="../jspf/issue-list.jspf"%>
69 </c:if> 91 </c:if>
70 </c:if> 92 </c:otherwise>
71 <c:if test="${empty viewmodel.versionFilter}"> 93 </c:choose>
72 <h2>
73 <fmt:message key="issue.without-version" />
74 </h2>
75 <c:set var="summary" value="${viewmodel.projectDetails.issueSummary}"/>
76 <c:set var="issues" value="${viewmodel.projectDetails.issues}"/>
77 <%@include file="../jspf/issue-summary.jspf"%>
78 <c:if test="${not empty issues}">
79 <%@include file="../jspf/issue-list.jspf"%>
80 </c:if>
81 </c:if>

mercurial