Commit 50158267 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1251: Migrate sidebar navigation

Task-Url: https://pm.winseda.de/issues/1251
parent 84298e0d
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="tpl" tagdir="/WEB-INF/tags" %>
<c:forEach items="${_nav.rootItems}" var="_navItem">
<c:set var="hide" value="false" />
<c:forEach items="${_navItem.attributes}" var="attr">
<c:if test="${customSearch!=null && customSearch.staticCustomSearch==false && attr.key=='hideInCustomSearch' && attr.value==true}">
<c:set var="hide" value="true" />
</c:if>
</c:forEach>
<c:if test="${hide==false && (_navItem.hideInSidebar==false && (_navItem.authRequired==false ||
( (_navItem.authRequired==true && _auth!=null && _auth.auth==true) &&
( _navItem.authMinLevel==0 || (_navItem.authMinLevel<=_auth.level)) )))}">
<div class="list-group nav active">
<h4 class="sidebar-title">
<c:choose>
<c:when test="${_navItem.linkUrl!=null && fn:length(_navItem.linkUrl)>0}">
<a href="<s:url value='${_navItem.linkUrl}'/>">
<c:if test="${_navItem.glyphicon!=null && fn:length(_navItem.glyphicon)>0}">
<span class="${_navItem.glyphicon}"></span>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
</a>
</c:when>
<c:otherwise>
<c:if test="${_navItem.glyphicon!=null && fn:length(_navItem.glyphicon)>0}">
<span class="${_navItem.glyphicon}"></span>&nbsp;
</c:if>
<s:message code="${_navItem.displayCode}" />
</c:otherwise>
</c:choose>
</h4>
<tpl:sideNav navItem="${_navItem}"></tpl:sideNav>
</div>
</c:if>
</c:forEach>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment