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

Mon, 09 Aug 2021 16:57:56 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 09 Aug 2021 16:57:56 +0200
changeset 217
a5ad7cd5d000
parent 213
5b55a5318a83
child 219
556c03f1dd4e
permissions
-rw-r--r--

#104 changes base layout from fixed to grid

universe@13 1 <%--
universe@13 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@13 3
universe@180 4 Copyright 2021 Mike Becker. All rights reserved.
universe@13 5
universe@13 6 Redistribution and use in source and binary forms, with or without
universe@13 7 modification, are permitted provided that the following conditions are met:
universe@13 8
universe@13 9 1. Redistributions of source code must retain the above copyright
universe@13 10 notice, this list of conditions and the following disclaimer.
universe@13 11
universe@13 12 2. Redistributions in binary form must reproduce the above copyright
universe@13 13 notice, this list of conditions and the following disclaimer in the
universe@13 14 documentation and/or other materials provided with the distribution.
universe@13 15
universe@13 16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@13 17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@13 18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
universe@13 19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
universe@13 20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
universe@13 21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
universe@13 22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
universe@13 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
universe@13 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
universe@13 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
universe@13 26 --%>
universe@39 27 <%@page contentType="text/html" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
universe@13 28 <%@page import="de.uapcore.lightpit.Constants" %>
universe@13 29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
universe@13 30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
universe@13 31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
universe@13 32
universe@207 33 <%-- Version suffix for forcing browsers to update the CSS / JS files --%>
universe@217 34 <c:set scope="page" var="versionSuffix" value="20210809b"/>
universe@207 35
universe@46 36 <%-- Make the base href easily available at request scope --%>
universe@71 37 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/>
universe@46 38
universe@198 39 <%-- The feed URL for this page. --%>
universe@198 40 <c:set scope="page" var="feedHref" value="${requestScope[Constants.REQ_ATTR_FEED_HREF]}"/>
universe@198 41
universe@45 42 <%-- Define an alias for the request path --%>
universe@45 43 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/>
universe@45 44
universe@109 45 <%-- Define an alias for the navigation menu --%>
universe@96 46 <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/>
universe@71 47
universe@205 48 <%-- Define an alias for the custom page title --%>
universe@205 49 <c:set scope="page" var="pageTitle" value="${requestScope[Constants.REQ_ATTR_PAGE_TITLE]}"/>
universe@205 50
universe@74 51 <%-- Define an alias for the content page name --%>
universe@74 52 <c:set scope="page" var="contentPage" value="${requestScope[Constants.REQ_ATTR_CONTENT_PAGE]}"/>
universe@13 53
universe@47 54 <%-- Define an alias for the optional redirect location --%>
universe@47 55 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/>
universe@47 56
universe@13 57 <%-- Define an alias for the additional stylesheet --%>
universe@13 58 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/>
universe@13 59
universe@207 60 <%-- Define an alias for the optional JS file --%>
universe@207 61 <c:set scope="page" var="javascriptFile" value="${requestScope[Constants.REQ_ATTR_JAVASCRIPT]}"/>
universe@207 62
universe@180 63 <%-- Load resource bundle --%>
universe@195 64 <fmt:setLocale scope="request" value="${pageContext.response.locale}"/>
universe@180 65 <fmt:setBundle scope="request" basename="localization.strings"/>
universe@78 66
universe@13 67 <!DOCTYPE html>
universe@13 68 <html>
universe@71 69 <head>
universe@71 70 <base href="${baseHref}">
universe@205 71 <title>
universe@205 72 LightPIT
universe@205 73 <c:if test="${not empty pageTitle}"> - <c:out value="${pageTitle}"/></c:if>
universe@205 74 </title>
universe@71 75 <meta charset="UTF-8">
universe@71 76 <c:if test="${not empty redirectLocation}">
universe@47 77 <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
universe@71 78 </c:if>
universe@207 79 <link rel="stylesheet" href="lightpit.css?v=${versionSuffix}" type="text/css">
universe@199 80 <c:if test="${not empty feedHref}">
universe@199 81 <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${feedHref}"/>
universe@199 82 </c:if>
universe@71 83 <c:if test="${not empty extraCss}">
universe@163 84 <c:forEach items="${extraCss}" var="cssFile">
universe@207 85 <link rel="stylesheet" href="${cssFile}?v=${versionSuffix}" type="text/css">
universe@163 86 </c:forEach>
universe@71 87 </c:if>
universe@207 88 <c:if test="${not empty javascriptFile}">
universe@207 89 <script src="${javascriptFile}?v=${versionSuffix}" type="text/javascript"></script>
universe@207 90 </c:if>
universe@71 91 </head>
universe@71 92 <body>
universe@217 93 <div id="body-area">
universe@217 94 <div id="mainMenu">
universe@217 95 <div class="menuEntry"
universe@217 96 <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> >
universe@217 97 <a href="projects/">
universe@217 98 <fmt:message key="menu.projects"/>
universe@217 99 </a>
universe@217 100 </div>
universe@217 101 <div class="menuEntry"
universe@217 102 <c:if test="${fn:startsWith(requestPath, '/users/')}">data-active</c:if> >
universe@217 103 <a href="users/">
universe@217 104 <fmt:message key="menu.users"/>
universe@217 105 </a>
universe@217 106 </div>
universe@217 107 <div class="menuEntry"
universe@217 108 <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> >
universe@217 109 <a href="language/">
universe@217 110 <fmt:message key="menu.languages"/>
universe@217 111 </a>
universe@217 112 </div>
universe@217 113 <div class="menuEntry"
universe@217 114 <c:if test="${fn:startsWith(requestPath, '/about/')}">data-active</c:if> >
universe@217 115 <a href="about/">
universe@217 116 <fmt:message key="menu.about"/>
universe@217 117 </a>
universe@217 118 </div>
universe@217 119 </div>
universe@217 120 <c:if test="${not empty navMenu}">
universe@217 121 <div id="sideMenu">
universe@217 122 <%@include file="../jspf/navmenu.jspf" %>
universe@217 123 </div>
universe@217 124 </c:if>
universe@217 125 <div id="content-area">
universe@217 126 <c:import url="${contentPage}"/>
universe@217 127 </div>
universe@145 128 </div>
universe@71 129 </body>
universe@13 130 </html>

mercurial