1 <%-- |
1 <%-- |
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 |
3 |
4 Copyright 2020 Mike Becker. All rights reserved. |
4 Copyright 2021 Mike Becker. All rights reserved. |
5 |
5 |
6 Redistribution and use in source and binary forms, with or without |
6 Redistribution and use in source and binary forms, with or without |
7 modification, are permitted provided that the following conditions are met: |
7 modification, are permitted provided that the following conditions are met: |
8 |
8 |
9 1. Redistributions of source code must retain the above copyright |
9 1. Redistributions of source code must retain the above copyright |
46 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> |
46 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> |
47 |
47 |
48 <%-- Define an alias for the additional stylesheet --%> |
48 <%-- Define an alias for the additional stylesheet --%> |
49 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
49 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
50 |
50 |
51 <%-- Define an alias for the bundle name --%> |
|
52 <c:set scope="page" var="bundleName" value="${requestScope[Constants.REQ_ATTR_RESOURCE_BUNDLE]}"/> |
|
53 |
|
54 <%-- Apply the session locale (should always be present, but check nevertheless) --%> |
51 <%-- Apply the session locale (should always be present, but check nevertheless) --%> |
55 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"> |
52 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"> |
56 <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/> |
53 <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/> |
57 </c:if> |
54 </c:if> |
58 |
55 |
59 <%-- Load resource bundles --%> |
56 <%-- Load resource bundle --%> |
60 <fmt:setBundle scope="request" basename="${bundleName}"/> |
57 <fmt:setBundle scope="request" basename="localization.strings"/> |
61 <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/> |
|
62 |
58 |
63 <!DOCTYPE html> |
59 <!DOCTYPE html> |
64 <html> |
60 <html> |
65 <head> |
61 <head> |
66 <base href="${baseHref}"> |
62 <base href="${baseHref}"> |
67 <title>LightPIT - <fmt:message key="pageTitle"/></title> |
63 <title><fmt:message key="app.title"/></title> |
68 <meta charset="UTF-8"> |
64 <meta charset="UTF-8"> |
69 <c:if test="${not empty redirectLocation}"> |
65 <c:if test="${not empty redirectLocation}"> |
70 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
66 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
71 </c:if> |
67 </c:if> |
72 <link rel="stylesheet" href="lightpit.css" type="text/css"> |
68 <link rel="stylesheet" href="lightpit.css" type="text/css"> |
78 </head> |
74 </head> |
79 <body> |
75 <body> |
80 <div id="mainMenu"> |
76 <div id="mainMenu"> |
81 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> > |
77 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> > |
82 <a href="projects/"> |
78 <a href="projects/"> |
83 <fmt:message bundle="${lightpit_bundle}" key="menu.projects"/> |
79 <fmt:message key="menu.projects"/> |
84 </a> |
80 </a> |
85 </div> |
81 </div> |
86 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/teams/')}">data-active</c:if> > |
82 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/teams/')}">data-active</c:if> > |
87 <a href="teams/"> |
83 <a href="teams/"> |
88 <fmt:message bundle="${lightpit_bundle}" key="menu.users"/> |
84 <fmt:message key="menu.users"/> |
89 </a> |
85 </a> |
90 </div> |
86 </div> |
91 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> > |
87 <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> > |
92 <a href="language/"> |
88 <a href="language/"> |
93 <fmt:message bundle="${lightpit_bundle}" key="menu.languages"/> |
89 <fmt:message key="menu.languages"/> |
94 </a> |
90 </a> |
95 </div> |
91 </div> |
96 </div> |
92 </div> |
97 <div> |
93 <div> |
98 <c:if test="${not empty navMenu}"> |
94 <c:if test="${not empty navMenu}"> |