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

Mon, 01 Jun 2020 14:46:58 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 01 Jun 2020 14:46:58 +0200
changeset 86
0a658e53177c
parent 78
bb4c52bf3439
child 96
b7b685f31e39
permissions
-rw-r--r--

improves issue overview and adds progress information

     1 <%-- 
     2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4 Copyright 2018 Mike Becker. All rights reserved.
     6 Redistribution and use in source and binary forms, with or without
     7 modification, are permitted provided that the following conditions are met:
     9 1. Redistributions of source code must retain the above copyright
    10 notice, this list of conditions and the following disclaimer.
    12 2. Redistributions in binary form must reproduce the above copyright
    13 notice, this list of conditions and the following disclaimer in the
    14 documentation and/or other materials provided with the distribution.
    16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    26 --%>
    27 <%@page contentType="text/html" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
    28 <%@page import="de.uapcore.lightpit.Constants" %>
    29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    31 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    33 <%-- Make the base href easily available at request scope --%>
    34 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/>
    36 <%-- Define an alias for the request path --%>
    37 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/>
    39 <%-- Define an alias for the main menu --%>
    40 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
    42 <%-- Define an alias for the main menu --%>
    43 <c:set scope="page" var="breadcrumbs" value="${requestScope[Constants.REQ_ATTR_BREADCRUMBS]}"/>
    45 <%-- Define an alias for the content page name --%>
    46 <c:set scope="page" var="contentPage" value="${requestScope[Constants.REQ_ATTR_CONTENT_PAGE]}"/>
    48 <%-- Define an alias for the optional redirect location --%>
    49 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/>
    51 <%-- Define an alias for the additional stylesheet --%>
    52 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/>
    54 <%-- Define an alias for the bundle name --%>
    55 <c:set scope="page" var="bundleName" value="${requestScope[Constants.REQ_ATTR_RESOURCE_BUNDLE]}"/>
    57 <%-- Apply the session locale (should always be present, but check nevertheless) --%>
    58 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}">
    59     <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/>
    60 </c:if>
    62 <%-- Load resource bundles --%>
    63 <fmt:setBundle scope="request" basename="${bundleName}"/>
    64 <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/>
    66 <!DOCTYPE html>
    67 <html>
    68 <head>
    69     <base href="${baseHref}">
    70     <title>LightPIT - <fmt:message key="pageTitle"/></title>
    71     <meta charset="UTF-8">
    72     <c:if test="${not empty redirectLocation}">
    73         <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
    74     </c:if>
    75     <link rel="stylesheet" href="lightpit.css" type="text/css">
    76     <c:if test="${not empty extraCss}">
    77         <link rel="stylesheet" href="${extraCss}" type="text/css">
    78     </c:if>
    79 </head>
    80 <body>
    81 <div id="mainMenu">
    82     <c:forEach var="menu" items="${mainMenu}">
    83         <%@include file="../jspf/menu-entry.jsp" %>
    84     </c:forEach>
    85 </div>
    86 <c:if test="${not empty breadcrumbs}">
    87     <div id="breadcrumbs">
    88         <c:forEach var="menu" items="${breadcrumbs}">
    89             <%@include file="../jspf/menu-entry.jsp" %>
    90         </c:forEach>
    91     </div>
    92 </c:if>
    93 <div id="content-area">
    94     <c:if test="${not empty contentPage}">
    95         <c:import url="${contentPage}"/>
    96     </c:if>
    97 </div>
    98 </body>
    99 </html>

mercurial