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

Thu, 29 Dec 2022 14:50:35 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 29 Dec 2022 14:50:35 +0100
changeset 257
c1be672af7ff
parent 184
e8eecee6aadf
child 266
65c72e65ff67
permissions
-rw-r--r--

#164 add issue summary for developers

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

mercurial