Thu, 08 Oct 2020 20:44:05 +0200
fixes colspan of empty th in versions overview
universe@51 | 1 | <%-- |
universe@51 | 2 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@51 | 3 | |
universe@51 | 4 | Copyright 2018 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@78 | 40 | <a href="./teams/edit" class="button"><fmt:message key="button.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@51 | 45 | <thead> |
universe@51 | 46 | <tr> |
universe@51 | 47 | <th></th> |
universe@82 | 48 | <th><fmt:message key="displayname"/></th> |
universe@51 | 49 | </tr> |
universe@51 | 50 | </thead> |
universe@51 | 51 | <tbody> |
universe@86 | 52 | <c:forEach var="user" items="${viewmodel.users}"> |
universe@51 | 53 | <tr> |
universe@78 | 54 | <td><a href="./teams/edit?id=${user.id}">✎</a></td> |
universe@51 | 55 | <td><c:out value="${user.displayname}"/></td> |
universe@51 | 56 | </tr> |
universe@51 | 57 | </c:forEach> |
universe@51 | 58 | </tbody> |
universe@51 | 59 | </table> |
universe@51 | 60 | </c:if> |