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

Mon, 01 Jun 2020 14:46:58 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 01 Jun 2020 14:46:58 +0200
changeset 86
0a658e53177c
parent 82
4ec7f2600c83
child 99
a369fb1b3aa2
permissions
-rw-r--r--

improves issue overview and adds progress information

universe@47 1 <%--
universe@47 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@47 3
universe@47 4 Copyright 2018 Mike Becker. All rights reserved.
universe@47 5
universe@47 6 Redistribution and use in source and binary forms, with or without
universe@47 7 modification, are permitted provided that the following conditions are met:
universe@47 8
universe@47 9 1. Redistributions of source code must retain the above copyright
universe@47 10 notice, this list of conditions and the following disclaimer.
universe@47 11
universe@47 12 2. Redistributions in binary form must reproduce the above copyright
universe@47 13 notice, this list of conditions and the following disclaimer in the
universe@47 14 documentation and/or other materials provided with the distribution.
universe@47 15
universe@47 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@47 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@47 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@47 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@47 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@47 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@47 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@47 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@47 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@47 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@47 26 --%>
universe@47 27 <%@page pageEncoding="UTF-8" %>
universe@47 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@47 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@47 30
universe@86 31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.ProjectIndexView" scope="request"/>
universe@47 32
universe@86 33 <c:if test="${empty viewmodel.projects}">
universe@47 34 <div class="info-box">
universe@72 35 <fmt:message key="no-projects"/>
universe@47 36 </div>
universe@47 37 </c:if>
universe@47 38
universe@47 39 <div id="tool-area">
universe@78 40 <a href="./projects/edit" class="button"><fmt:message key="button.create"/></a>
universe@47 41 </div>
universe@47 42
universe@86 43 <c:if test="${not empty viewmodel.projects}">
universe@81 44 <table id="project-list" class="datatable medskip">
universe@72 45 <colgroup>
universe@72 46 <col>
universe@81 47 <col width="20%">
universe@81 48 <col width="50%">
universe@86 49 <col width="6%">
universe@86 50 <col width="6%">
universe@86 51 <col width="6%">
universe@86 52 <col width="6%">
universe@86 53 <col width="6%">
universe@72 54 </colgroup>
universe@72 55 <thead>
universe@72 56 <tr>
universe@72 57 <th></th>
universe@82 58 <th><fmt:message key="name"/></th>
universe@82 59 <th><fmt:message key="repoUrl"/></th>
universe@86 60 <th class="hcenter"><fmt:message key="version.latest"/></th>
universe@86 61 <th class="hcenter"><fmt:message key="version.next"/></th>
universe@86 62 <th class="hcenter"><fmt:message key="issues.open"/></th>
universe@86 63 <th class="hcenter"><fmt:message key="issues.active"/></th>
universe@86 64 <th class="hcenter"><fmt:message key="issues.done"/></th>
universe@47 65 </tr>
universe@72 66 </thead>
universe@72 67 <tbody>
universe@86 68 <c:forEach var="projectInfo" items="${viewmodel.projects}">
universe@86 69 <c:set var="project" scope="page" value="${projectInfo.project}"/>
universe@72 70 <tr class="nowrap">
universe@86 71 <td style="width: 2em;"><a href="./projects/edit?pid=${project.id}">&#x270e;</a></td>
universe@78 72 <td><a href="./projects/view?pid=${project.id}"><c:out value="${project.name}"/></a>
universe@72 73 </td>
universe@72 74 <td>
universe@72 75 <c:if test="${not empty project.repoUrl}">
universe@72 76 <a target="_blank" href="<c:out value="${project.repoUrl}"/>"><c:out
universe@72 77 value="${project.repoUrl}"/></a>
universe@72 78 </c:if>
universe@72 79 </td>
universe@86 80 <td class="hright">
universe@86 81 <c:if test="${not empty projectInfo.latestVersion}">
universe@86 82 <a href="./projects/versions/view?vid=${projectInfo.latestVersion.id}"><c:out value="${projectInfo.latestVersion.name}"/></a>
universe@86 83 </c:if>
universe@86 84 </td>
universe@86 85 <td class="hright">
universe@86 86 <c:if test="${not empty projectInfo.nextVersion}">
universe@86 87 <a href="./projects/versions/view?vid=${projectInfo.nextVersion.id}"><c:out value="${projectInfo.nextVersion.name}"/></a>
universe@86 88 </c:if>
universe@86 89 </td>
universe@86 90 <td class="hright">${projectInfo.issueSummary.open}</td>
universe@86 91 <td class="hright">${projectInfo.issueSummary.active}</td>
universe@86 92 <td class="hright">${projectInfo.issueSummary.done}</td>
universe@72 93 </tr>
universe@72 94 </c:forEach>
universe@72 95 </tbody>
universe@72 96 </table>
universe@47 97 </c:if>

mercurial