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

changeset 78
bb4c52bf3439
parent 77
192298f8161f
child 86
0a658e53177c
equal deleted inserted replaced
77:192298f8161f 78:bb4c52bf3439
50 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> 50 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/>
51 51
52 <%-- Define an alias for the additional stylesheet --%> 52 <%-- Define an alias for the additional stylesheet --%>
53 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> 53 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/>
54 54
55 <%-- Define an alias for the module info --%> 55 <%-- Define an alias for the bundle name --%>
56 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/> 56 <c:set scope="page" var="bundleName" value="${requestScope[Constants.REQ_ATTR_RESOURCE_BUNDLE]}"/>
57 57
58 <%-- Apply the session locale (should always be present, but check nevertheless) --%> 58 <%-- Apply the session locale (should always be present, but check nevertheless) --%>
59 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"> 59 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}">
60 <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/> 60 <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/>
61 </c:if> 61 </c:if>
62 62
63 <%-- Selected project, if any --%> 63 <%-- Selected project, if any --%>
64 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/> 64 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/>
65 65
66 <%-- Load resource bundles --%>
67 <fmt:setBundle scope="request" basename="${bundleName}"/>
68 <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/>
69
66 <!DOCTYPE html> 70 <!DOCTYPE html>
67 <html> 71 <html>
68 <head> 72 <head>
69 <base href="${baseHref}"> 73 <base href="${baseHref}">
70 <title>LightPIT - 74 <title>LightPIT - <fmt:message key="pageTitle"/></title>
71 <fmt:bundle basename="${moduleInfo.bundleBaseName}">
72 <fmt:message key="pageTitle"/>
73 </fmt:bundle>
74 </title>
75 <meta charset="UTF-8"> 75 <meta charset="UTF-8">
76 <c:if test="${not empty redirectLocation}"> 76 <c:if test="${not empty redirectLocation}">
77 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> 77 <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
78 </c:if> 78 </c:if>
79 <link rel="stylesheet" href="lightpit.css" type="text/css"> 79 <link rel="stylesheet" href="lightpit.css" type="text/css">
94 </c:forEach> 94 </c:forEach>
95 </div> 95 </div>
96 </c:if> 96 </c:if>
97 <div id="content-area"> 97 <div id="content-area">
98 <c:if test="${not empty contentPage}"> 98 <c:if test="${not empty contentPage}">
99 <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/>
100 <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/>
101 <c:import url="${contentPage}"/> 99 <c:import url="${contentPage}"/>
102 </c:if> 100 </c:if>
103 </div> 101 </div>
104 </body> 102 </body>
105 </html> 103 </html>

mercurial