Sat, 15 May 2021 16:19:29 +0200
#109 adds RSS feed button to project header and changes feed output slightly
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@46 | 33 | <%-- Make the base href easily available at request scope --%> |
universe@71 | 34 | <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}"/> |
universe@46 | 35 | |
universe@198 | 36 | <%-- The feed URL for this page. --%> |
universe@198 | 37 | <c:set scope="page" var="feedHref" value="${requestScope[Constants.REQ_ATTR_FEED_HREF]}"/> |
universe@198 | 38 | |
universe@45 | 39 | <%-- Define an alias for the request path --%> |
universe@45 | 40 | <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/> |
universe@45 | 41 | |
universe@109 | 42 | <%-- Define an alias for the navigation menu --%> |
universe@96 | 43 | <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/> |
universe@71 | 44 | |
universe@74 | 45 | <%-- Define an alias for the content page name --%> |
universe@74 | 46 | <c:set scope="page" var="contentPage" value="${requestScope[Constants.REQ_ATTR_CONTENT_PAGE]}"/> |
universe@13 | 47 | |
universe@47 | 48 | <%-- Define an alias for the optional redirect location --%> |
universe@47 | 49 | <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/> |
universe@47 | 50 | |
universe@13 | 51 | <%-- Define an alias for the additional stylesheet --%> |
universe@13 | 52 | <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/> |
universe@13 | 53 | |
universe@180 | 54 | <%-- Load resource bundle --%> |
universe@195 | 55 | <fmt:setLocale scope="request" value="${pageContext.response.locale}"/> |
universe@180 | 56 | <fmt:setBundle scope="request" basename="localization.strings"/> |
universe@78 | 57 | |
universe@13 | 58 | <!DOCTYPE html> |
universe@13 | 59 | <html> |
universe@71 | 60 | <head> |
universe@71 | 61 | <base href="${baseHref}"> |
universe@180 | 62 | <title><fmt:message key="app.title"/></title> |
universe@71 | 63 | <meta charset="UTF-8"> |
universe@71 | 64 | <c:if test="${not empty redirectLocation}"> |
universe@47 | 65 | <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
universe@71 | 66 | </c:if> |
universe@71 | 67 | <link rel="stylesheet" href="lightpit.css" type="text/css"> |
universe@199 | 68 | <c:if test="${not empty feedHref}"> |
universe@199 | 69 | <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${feedHref}"/> |
universe@199 | 70 | </c:if> |
universe@71 | 71 | <c:if test="${not empty extraCss}"> |
universe@163 | 72 | <c:forEach items="${extraCss}" var="cssFile"> |
universe@199 | 73 | <link rel="stylesheet" href="${cssFile}" type="text/css"> |
universe@163 | 74 | </c:forEach> |
universe@71 | 75 | </c:if> |
universe@71 | 76 | </head> |
universe@71 | 77 | <body> |
universe@71 | 78 | <div id="mainMenu"> |
universe@199 | 79 | <div class="menuEntry" |
universe@199 | 80 | <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> > |
universe@145 | 81 | <a href="projects/"> |
universe@180 | 82 | <fmt:message key="menu.projects"/> |
universe@145 | 83 | </a> |
universe@145 | 84 | </div> |
universe@199 | 85 | <div class="menuEntry" |
universe@199 | 86 | <c:if test="${fn:startsWith(requestPath, '/users/')}">data-active</c:if> > |
universe@184 | 87 | <a href="users/"> |
universe@180 | 88 | <fmt:message key="menu.users"/> |
universe@145 | 89 | </a> |
universe@145 | 90 | </div> |
universe@199 | 91 | <div class="menuEntry" |
universe@199 | 92 | <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> > |
universe@145 | 93 | <a href="language/"> |
universe@180 | 94 | <fmt:message key="menu.languages"/> |
universe@145 | 95 | </a> |
universe@145 | 96 | </div> |
universe@71 | 97 | </div> |
universe@96 | 98 | <div> |
universe@96 | 99 | <c:if test="${not empty navMenu}"> |
universe@96 | 100 | <div id="sideMenu"> |
universe@199 | 101 | <%@include file="../jspf/navmenu.jspf" %> |
universe@96 | 102 | </div> |
universe@96 | 103 | </c:if> |
universe@96 | 104 | <div id="content-area" <c:if test="${not empty navMenu}">class="sidebar-spacing"</c:if>> |
universe@197 | 105 | <c:import url="${contentPage}"/> |
universe@71 | 106 | </div> |
universe@71 | 107 | </div> |
universe@71 | 108 | </body> |
universe@13 | 109 | </html> |