src/main/webapp/WEB-INF/jspf/navmenu.jspf

Sat, 06 Jan 2024 20:32:56 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 06 Jan 2024 20:32:56 +0100
changeset 300
c7ee4cbfb86d
parent 184
e8eecee6aadf
permissions
-rw-r--r--

Added tag v1.2.2 for changeset 238de141d189

universe@109 1 <%--
universe@109 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@109 3
universe@180 4 Copyright 2021 Mike Becker. All rights reserved.
universe@109 5
universe@109 6 Redistribution and use in source and binary forms, with or without
universe@109 7 modification, are permitted provided that the following conditions are met:
universe@109 8
universe@109 9 1. Redistributions of source code must retain the above copyright
universe@109 10 notice, this list of conditions and the following disclaimer.
universe@109 11
universe@109 12 2. Redistributions in binary form must reproduce the above copyright
universe@109 13 notice, this list of conditions and the following disclaimer in the
universe@109 14 documentation and/or other materials provided with the distribution.
universe@109 15
universe@109 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@109 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@109 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@109 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@109 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@109 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@109 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@109 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@109 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@109 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@109 26 --%>
universe@184 27 <%@page pageEncoding="UTF-8" %>
universe@109 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@109 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@109 30
universe@184 31 <jsp:useBean id="navMenu" type="de.uapcore.lightpit.viewmodel.NavMenu" scope="request" />
universe@109 32
universe@184 33 <c:forEach var="entry" items="${navMenu.entries}">
universe@184 34 <div class="menuEntry level-${entry.level}"
universe@184 35 <c:if test="${entry.active}"> data-active </c:if>
universe@184 36 <c:if test="${not empty entry.title}">title="<fmt:message key="${entry.title}"/>" </c:if>
universe@184 37 >
universe@184 38 <c:if test="${not empty entry.iconColor}">
universe@184 39 <c:if test="${entry.iconUseCssClass}">
universe@184 40 <div class="navmenu-icon ${entry.iconColor}"></div>
universe@184 41 </c:if>
universe@184 42 <c:if test="${not entry.iconUseCssClass}">
universe@184 43 <div class="navmenu-icon" style="background: ${entry.iconColor}"></div>
universe@184 44 </c:if>
universe@184 45 </c:if>
universe@184 46 <a href="./${entry.href}">
universe@184 47 <c:if test="${entry.resolveCaption}">
universe@184 48 <fmt:message key="${entry.caption}"/>
universe@184 49 </c:if>
universe@184 50 <c:if test="${not entry.resolveCaption}">
universe@184 51 <c:out value="${entry.caption}"/>
universe@184 52 </c:if>
universe@109 53 </a>
universe@109 54 </div>
universe@109 55 </c:forEach>

mercurial