src/main/webapp/WEB-INF/jsp/site.jsp

changeset 145
6d2d69fd1c12
parent 115
c27638a50c92
child 158
4f912cd42876
--- a/src/main/webapp/WEB-INF/jsp/site.jsp	Fri Oct 23 12:26:08 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/site.jsp	Fri Oct 23 12:38:20 2020 +0200
@@ -36,9 +36,6 @@
 <%-- Define an alias for the request path --%>
 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/>
 
-<%-- Define an alias for the main menu --%>
-<c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
-
 <%-- Define an alias for the navigation menu --%>
 <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/>
 
@@ -79,9 +76,21 @@
 </head>
 <body>
 <div id="mainMenu">
-    <c:forEach var="menu" items="${mainMenu}">
-        <%@include file="../jspf/menu-entry.jspf" %>
-    </c:forEach>
+    <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> >
+        <a href="projects/">
+            <fmt:message bundle="${lightpit_bundle}" key="menu.projects"/>
+        </a>
+    </div>
+    <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/teams/')}">data-active</c:if> >
+        <a href="teams/">
+            <fmt:message bundle="${lightpit_bundle}" key="menu.users"/>
+        </a>
+    </div>
+    <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> >
+        <a href="language/">
+            <fmt:message bundle="${lightpit_bundle}" key="menu.languages"/>
+        </a>
+    </div>
 </div>
 <div>
     <c:if test="${not empty navMenu}">

mercurial