28 <%@page import="de.uapcore.lightpit.Constants" %> |
28 <%@page import="de.uapcore.lightpit.Constants" %> |
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> |
32 |
32 |
|
33 <%-- Version suffix for forcing browsers to update the CSS / JS files --%> |
|
34 <c:set scope="page" var="versionSuffix" value="20210802"/> |
|
35 |
33 <%-- Make the base href easily available at request scope --%> |
36 <%-- Make the base href easily available at request scope --%> |
34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/> |
37 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/> |
35 |
38 |
36 <%-- The feed URL for this page. --%> |
39 <%-- The feed URL for this page. --%> |
37 <c:set scope="page" var="feedHref" value="${requestScope[Constants.REQ_ATTR_FEED_HREF]}"/> |
40 <c:set scope="page" var="feedHref" value="${requestScope[Constants.REQ_ATTR_FEED_HREF]}"/> |
52 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> |
55 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> |
53 |
56 |
54 <%-- Define an alias for the additional stylesheet --%> |
57 <%-- Define an alias for the additional stylesheet --%> |
55 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
58 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
56 |
59 |
|
60 <%-- Define an alias for the optional JS file --%> |
|
61 <c:set scope="page" var="javascriptFile" value="${requestScope[Constants.REQ_ATTR_JAVASCRIPT]}"/> |
|
62 |
57 <%-- Load resource bundle --%> |
63 <%-- Load resource bundle --%> |
58 <fmt:setLocale scope="request" value="${pageContext.response.locale}"/> |
64 <fmt:setLocale scope="request" value="${pageContext.response.locale}"/> |
59 <fmt:setBundle scope="request" basename="localization.strings"/> |
65 <fmt:setBundle scope="request" basename="localization.strings"/> |
60 |
66 |
61 <!DOCTYPE html> |
67 <!DOCTYPE html> |
68 </title> |
74 </title> |
69 <meta charset="UTF-8"> |
75 <meta charset="UTF-8"> |
70 <c:if test="${not empty redirectLocation}"> |
76 <c:if test="${not empty redirectLocation}"> |
71 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
77 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
72 </c:if> |
78 </c:if> |
73 <link rel="stylesheet" href="lightpit.css" type="text/css"> |
79 <link rel="stylesheet" href="lightpit.css?v=${versionSuffix}" type="text/css"> |
74 <c:if test="${not empty feedHref}"> |
80 <c:if test="${not empty feedHref}"> |
75 <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${feedHref}"/> |
81 <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${feedHref}"/> |
76 </c:if> |
82 </c:if> |
77 <c:if test="${not empty extraCss}"> |
83 <c:if test="${not empty extraCss}"> |
78 <c:forEach items="${extraCss}" var="cssFile"> |
84 <c:forEach items="${extraCss}" var="cssFile"> |
79 <link rel="stylesheet" href="${cssFile}" type="text/css"> |
85 <link rel="stylesheet" href="${cssFile}?v=${versionSuffix}" type="text/css"> |
80 </c:forEach> |
86 </c:forEach> |
|
87 </c:if> |
|
88 <c:if test="${not empty javascriptFile}"> |
|
89 <script src="${javascriptFile}?v=${versionSuffix}" type="text/javascript"></script> |
81 </c:if> |
90 </c:if> |
82 </head> |
91 </head> |
83 <body> |
92 <body> |
84 <div id="mainMenu"> |
93 <div id="mainMenu"> |
85 <div class="menuEntry" |
94 <div class="menuEntry" |