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

Sat, 30 May 2020 15:26:15 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 May 2020 15:26:15 +0200
changeset 81
1a2e7b5d48f7
parent 80
27a25f32048e
child 82
4ec7f2600c83
permissions
-rw-r--r--

adds issue summaries

     1 <%--
     2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4 Copyright 2018 Mike Becker. All rights reserved.
     6 Redistribution and use in source and binary forms, with or without
     7 modification, are permitted provided that the following conditions are met:
     9 1. Redistributions of source code must retain the above copyright
    10 notice, this list of conditions and the following disclaimer.
    12 2. Redistributions in binary form must reproduce the above copyright
    13 notice, this list of conditions and the following disclaimer in the
    14 documentation and/or other materials provided with the distribution.
    16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    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,
    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.
    26 --%>
    27 <%@page pageEncoding="UTF-8" %>
    28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    31 <jsp:useBean id="project" type="de.uapcore.lightpit.entities.Project" scope="request" />
    32 <jsp:useBean id="versions" type="java.util.List<de.uapcore.lightpit.entities.Version>" scope="request"/>
    33 <jsp:useBean id="statsAffected" type="java.util.List<de.uapcore.lightpit.entities.VersionStatistics>" scope="request"/>
    34 <jsp:useBean id="statsScheduled" type="java.util.List<de.uapcore.lightpit.entities.VersionStatistics>" scope="request"/>
    35 <jsp:useBean id="statsResolved" type="java.util.List<de.uapcore.lightpit.entities.VersionStatistics>" scope="request"/>
    36 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/>
    37 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/>
    38 <jsp:useBean id="statsHideZeros" type="java.lang.Boolean" scope="request"/>
    40 <div id="project-attributes">
    41     <div class="row">
    42         <div class="caption"><fmt:message key="thead.name"/>:</div>
    43         <div><c:out value="${project.name}"/></div>
    44         <div class="caption"><fmt:message key="thead.description"/>:</div>
    45         <div><c:out value="${project.description}"/></div>
    46     </div>
    47     <div class="row">
    48         <div class="caption"><fmt:message key="thead.owner"/>:</div>
    49         <div>
    50             <c:if test="${not empty project.owner}"><c:out value="${project.owner.displayname}"/></c:if>
    51         </div>
    52         <div class="caption"><fmt:message key="thead.repoUrl"/>:</div>
    53         <div>
    54             <c:if test="${not empty project.repoUrl}">
    55                 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out
    56                         value="${project.repoUrl}"/></a>
    57             </c:if>
    58         </div>
    59     </div>
    60 </div>
    62 <div id="tool-area">
    63     <a href="./projects/versions/edit" class="button"><fmt:message key="button.version.create"/></a>
    64     <a href="./projects/issues/edit" class="button"><fmt:message key="button.issue.create"/></a>
    65     <a href="./projects/issues/" class="button"><fmt:message key="button.issue.list"/></a>
    66     <c:if test="${not statsHideZeros}">
    67     <a href="./projects/view?reduced=1" class="button"><fmt:message key="button.stats.hidezeros"/></a>
    68     </c:if>
    69     <c:if test="${statsHideZeros}">
    70     <a href="./projects/view?reduced=0" class="button"><fmt:message key="button.stats.showzeros"/></a>
    71     </c:if>
    72 </div>
    74 <div id="version-stats">
    75 <c:forEach var="version" items="${versions}" varStatus="iter">
    76     <h2>
    77         <fmt:message key="version.label" /> <c:out value="${version.name}" /> - <fmt:message key="version.status.${version.status}"/>
    78         <a href="./projects/versions/edit?id=${version.id}">&#x270e;</a>
    79     </h2>
    81     <h3><fmt:message key="version.statistics.affected" /></h3>
    82     <c:set var="stats" value="${statsAffected[iter.index]}" />
    83     <%@include file="../jspf/version-stats.jsp" %>
    85     <h3><fmt:message key="version.statistics.scheduled" /></h3>
    86     <c:set var="stats" value="${statsScheduled[iter.index]}" />
    87     <%@include file="../jspf/version-stats.jsp" %>
    89     <h3><fmt:message key="version.statistics.resolved" /></h3>
    90     <c:set var="stats" value="${statsResolved[iter.index]}" />
    91     <%@include file="../jspf/version-stats.jsp" %>
    92 </c:forEach>
    93 </div>

mercurial