Wed, 13 May 2020 21:10:23 +0200
simplifies menu generation, adds submenus and removes VersionsModule (versions will be part of the ProjectsModule)
universe@45 | 1 | <%-- |
universe@45 | 2 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@45 | 3 | |
universe@45 | 4 | Copyright 2018 Mike Becker. All rights reserved. |
universe@45 | 5 | |
universe@45 | 6 | Redistribution and use in source and binary forms, with or without |
universe@45 | 7 | modification, are permitted provided that the following conditions are met: |
universe@45 | 8 | |
universe@45 | 9 | 1. Redistributions of source code must retain the above copyright |
universe@45 | 10 | notice, this list of conditions and the following disclaimer. |
universe@45 | 11 | |
universe@45 | 12 | 2. Redistributions in binary form must reproduce the above copyright |
universe@45 | 13 | notice, this list of conditions and the following disclaimer in the |
universe@45 | 14 | documentation and/or other materials provided with the distribution. |
universe@45 | 15 | |
universe@45 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@45 | 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@45 | 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
universe@45 | 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
universe@45 | 20 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
universe@45 | 21 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
universe@45 | 22 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
universe@45 | 23 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
universe@45 | 24 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
universe@45 | 25 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
universe@45 | 26 | --%> |
universe@45 | 27 | <div class="menuEntry" |
universe@45 | 28 | <c:set var="menuPath" value="/${menu.pathName}"/> |
universe@45 | 29 | <c:if test="${fn:startsWith(requestPath, menuPath)}"> |
universe@45 | 30 | data-active |
universe@45 | 31 | </c:if> |
universe@45 | 32 | > |
universe@45 | 33 | <a href="${menu.pathName}/"> |
universe@45 | 34 | <fmt:bundle basename="${menu.resourceKey.bundle}"> |
universe@45 | 35 | <fmt:message key="${menu.resourceKey.key}"/> |
universe@45 | 36 | </fmt:bundle> |
universe@45 | 37 | </a> |
universe@45 | 38 | </div> |