| 33 <%-- Make the base href easily available at request scope --%> |
33 <%-- Make the base href easily available at request scope --%> |
| 34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/> |
34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/> |
| 35 |
35 |
| 36 <%-- Define an alias for the request path --%> |
36 <%-- Define an alias for the request path --%> |
| 37 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/> |
37 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/> |
| 38 |
|
| 39 <%-- Define an alias for the main menu --%> |
|
| 40 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/> |
|
| 41 |
38 |
| 42 <%-- Define an alias for the navigation menu --%> |
39 <%-- Define an alias for the navigation menu --%> |
| 43 <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/> |
40 <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/> |
| 44 |
41 |
| 45 <%-- Define an alias for the content page name --%> |
42 <%-- Define an alias for the content page name --%> |
| 77 <link rel="stylesheet" href="${extraCss}" type="text/css"> |
74 <link rel="stylesheet" href="${extraCss}" type="text/css"> |
| 78 </c:if> |
75 </c:if> |
| 79 </head> |
76 </head> |
| 80 <body> |
77 <body> |
| 81 <div id="mainMenu"> |
78 <div id="mainMenu"> |
| 82 <c:forEach var="menu" items="${mainMenu}"> |
79 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> > |
| 83 <%@include file="../jspf/menu-entry.jspf" %> |
80 <a href="projects/"> |
| 84 </c:forEach> |
81 <fmt:message bundle="${lightpit_bundle}" key="menu.projects"/> |
| |
82 </a> |
| |
83 </div> |
| |
84 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/teams/')}">data-active</c:if> > |
| |
85 <a href="teams/"> |
| |
86 <fmt:message bundle="${lightpit_bundle}" key="menu.users"/> |
| |
87 </a> |
| |
88 </div> |
| |
89 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> > |
| |
90 <a href="language/"> |
| |
91 <fmt:message bundle="${lightpit_bundle}" key="menu.languages"/> |
| |
92 </a> |
| |
93 </div> |
| 85 </div> |
94 </div> |
| 86 <div> |
95 <div> |
| 87 <c:if test="${not empty navMenu}"> |
96 <c:if test="${not empty navMenu}"> |
| 88 <div id="sideMenu"> |
97 <div id="sideMenu"> |
| 89 <c:import url="${navMenu}"/> |
98 <c:import url="${navMenu}"/> |