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

Thu, 15 Oct 2020 20:02:30 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 15 Oct 2020 20:02:30 +0200
changeset 131
67df332e3146
parent 115
c27638a50c92
child 134
f47e82cd6077
permissions
-rw-r--r--

changes request mapping to contain project and version ID as path parameters (this removes the session storage)

     1 <%--
     2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4 Copyright 2020 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="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionsView" scope="request" />
    33 <c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
    34 <%@include file="../jspf/project-header.jspf"%>
    36 <div id="tool-area">
    37     <a href="./projects/${project.id}/create-version" class="button"><fmt:message key="button.version.create"/></a>
    38     <a href="./projects/${project.id}/create-issue" class="button"><fmt:message key="button.issue.create"/></a>
    39 </div>
    41 <h2><fmt:message key="progress" /></h2>
    43 <c:set var="summary" value="${viewmodel.projectInfo.issueSummary}" />
    44 <%@include file="../jspf/issue-summary.jspf"%>
    46 <table id="version-list" class="datatable medskip fullwidth">
    47     <colgroup>
    48         <col>
    49         <col width="28%">
    50         <col width="12%">
    51         <col width="12%">
    52         <col width="12%">
    53         <col width="12%">
    54         <col width="12%">
    55         <col width="12%">
    56     </colgroup>
    57     <thead>
    58     <tr>
    59         <th colspan="2"></th>
    60         <th colspan="3" class="hcenter">
    61             <fmt:message key="issues.resolved"/>
    62         </th>
    63         <th colspan="3" class="hcenter">
    64             <fmt:message key="issues.reported"/>
    65         </th>
    66     </tr>
    67     <tr>
    68         <th></th>
    69         <th><fmt:message key="version.name"/></th>
    70         <th class="hcenter"><fmt:message key="issues.open" /></th>
    71         <th class="hcenter"><fmt:message key="issues.active" /></th>
    72         <th class="hcenter"><fmt:message key="issues.done" /></th>
    73         <th class="hcenter"><fmt:message key="issues.open" /></th>
    74         <th class="hcenter"><fmt:message key="issues.active" /></th>
    75         <th class="hcenter"><fmt:message key="issues.done" /></th>
    76     </tr>
    77     </thead>
    78     <tbody>
    79         <c:forEach var="versionInfo" items="${viewmodel.versionInfo}" >
    80         <tr>
    81             <td rowspan="2" style="width: 2em;"><a href="./projects/${project.id}/versions/${versionInfo.version.id}/edit">&#x270e;</a></td>
    82             <td rowspan="2">
    83                 <a href="./projects/${project.id}/versions/${versionInfo.version.id}">
    84                     <c:out value="${versionInfo.version.name}"/>
    85                 </a>
    86                 <div class="version-tag version-${versionInfo.version.status}">
    87                     <c:out value="${versionInfo.version.status}"/>
    88                 </div>
    89             </td>
    90             <td class="hright">${versionInfo.resolvedTotal.open}</td>
    91             <td class="hright">${versionInfo.resolvedTotal.active}</td>
    92             <td class="hright">${versionInfo.resolvedTotal.done}</td>
    93             <td class="hright">${versionInfo.reportedTotal.open}</td>
    94             <td class="hright">${versionInfo.reportedTotal.active}</td>
    95             <td class="hright">${versionInfo.reportedTotal.done}</td>
    96         </tr>
    97         <tr>
    98             <td colspan="3">
    99                 <c:set var="summary" value="${versionInfo.resolvedTotal}"/>
   100                 <%@include file="../jspf/issue-progress.jspf" %>
   101             </td>
   102             <td colspan="3">
   103                 <c:set var="summary" value="${versionInfo.reportedTotal}"/>
   104                 <%@include file="../jspf/issue-progress.jspf" %>
   105             </td>
   106         </tr>
   107         </c:forEach>
   108     </tbody>
   109 </table>

mercurial