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

changeset 195
9c7aff3cbb14
parent 184
e8eecee6aadf
child 197
0a2ad22ac656
equal deleted inserted replaced
194:2b3b7d0a885e 195:9c7aff3cbb14
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 <%-- Apply the session locale (should always be present, but check nevertheless) --%>
52 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}">
53 <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/>
54 </c:if>
55
56 <%-- Load resource bundle --%> 51 <%-- Load resource bundle --%>
52 <fmt:setLocale scope="request" value="${pageContext.response.locale}"/>
57 <fmt:setBundle scope="request" basename="localization.strings"/> 53 <fmt:setBundle scope="request" basename="localization.strings"/>
58 54
59 <!DOCTYPE html> 55 <!DOCTYPE html>
60 <html> 56 <html>
61 <head> 57 <head>
64 <meta charset="UTF-8"> 60 <meta charset="UTF-8">
65 <c:if test="${not empty redirectLocation}"> 61 <c:if test="${not empty redirectLocation}">
66 <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> 62 <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
67 </c:if> 63 </c:if>
68 <link rel="stylesheet" href="lightpit.css" type="text/css"> 64 <link rel="stylesheet" href="lightpit.css" type="text/css">
65 <link rel="alternate" type="application/rss+xml"
66 title="RSS" href="${baseHref}feed/issues.rss" />
69 <c:if test="${not empty extraCss}"> 67 <c:if test="${not empty extraCss}">
70 <c:forEach items="${extraCss}" var="cssFile"> 68 <c:forEach items="${extraCss}" var="cssFile">
71 <link rel="stylesheet" href="${cssFile}" type="text/css"> 69 <link rel="stylesheet" href="${cssFile}" type="text/css">
72 </c:forEach> 70 </c:forEach>
73 </c:if> 71 </c:if>

mercurial