src/main/webapp/WEB-INF/jspf/menu-entry.jsp

Sat, 23 May 2020 13:34:41 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 23 May 2020 13:34:41 +0200
changeset 77
192298f8161f
parent 71
dca186d3911f
child 97
602f75801644
permissions
-rw-r--r--

bloat removal 1/3 - configurable resource keys

<div class="menuEntry"
     <c:if test="${menu.active}">data-active</c:if> >
    <a href="${menu.pathName}">
        <c:if test="${empty menu.resourceKey}">
            <c:out value="${menu.text}"/>
        </c:if>
        <c:if test="${not empty menu.resourceKey}">
            <fmt:bundle basename="${menu.resourceKey.bundle}">
                <fmt:message key="${menu.resourceKey.key}"/>
            </fmt:bundle>
        </c:if>
    </a>
</div>

mercurial