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

Tue, 19 May 2020 19:34:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 19 May 2020 19:34:57 +0200
changeset 70
821c4950b619
parent 47
57cfb94ab99f
child 71
dca186d3911f
permissions
-rw-r--r--

removes the sub menu and removes the home module
fixes the queries in the PGIssueDao
adds placeholder for a breadcrumb menu

13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <%--
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3
24
8137ec335416 updates copyright header
Mike Becker <universe@uap-core.de>
parents: 15
diff changeset
4 Copyright 2018 Mike Becker. All rights reserved.
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 Redistribution and use in source and binary forms, with or without
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 modification, are permitted provided that the following conditions are met:
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 1. Redistributions of source code must retain the above copyright
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 notice, this list of conditions and the following disclaimer.
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 2. Redistributions in binary form must reproduce the above copyright
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 notice, this list of conditions and the following disclaimer in the
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 documentation and/or other materials provided with the distribution.
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 --%>
39
e722861558bb fixes minor issues that were reported by default inspection
Mike Becker <universe@uap-core.de>
parents: 29
diff changeset
27 <%@page contentType="text/html" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 <%@page import="de.uapcore.lightpit.Constants" %>
70
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
29 <%@page import="de.uapcore.lightpit.modules.ProjectsModule" %>
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33
46
1574965c7dc7 fixes error pages and adds referer link to error page if it comes from the application
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
34 <%-- Make the base href easily available at request scope --%>
47
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
35 <c:set scope="page" var="baseHref" value="${requestScope[Constants.REQ_ATTR_BASE_HREF]}" />
46
1574965c7dc7 fixes error pages and adds referer link to error page if it comes from the application
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
36
45
cc7f082c5ef3 simplifies menu generation, adds submenus and removes VersionsModule (versions will be part of the ProjectsModule)
Mike Becker <universe@uap-core.de>
parents: 43
diff changeset
37 <%-- Define an alias for the request path --%>
cc7f082c5ef3 simplifies menu generation, adds submenus and removes VersionsModule (versions will be part of the ProjectsModule)
Mike Becker <universe@uap-core.de>
parents: 43
diff changeset
38 <c:set scope="page" var="requestPath" value="${requestScope[Constants.REQ_ATTR_PATH]}"/>
cc7f082c5ef3 simplifies menu generation, adds submenus and removes VersionsModule (versions will be part of the ProjectsModule)
Mike Becker <universe@uap-core.de>
parents: 43
diff changeset
39
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 <%-- Define an alias for the main menu --%>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 <c:set scope="page" var="mainMenu" value="${requestScope[Constants.REQ_ATTR_MENU]}"/>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 <%-- Define an alias for the fragment name --%>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 <c:set scope="page" var="fragment" value="${requestScope[Constants.REQ_ATTR_FRAGMENT]}"/>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45
47
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
46 <%-- Define an alias for the optional redirect location --%>
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
47 <c:set scope="page" var="redirectLocation" value="${requestScope[Constants.REQ_ATTR_REDIRECT_LOCATION]}"/>
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
48
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 <%-- Define an alias for the additional stylesheet --%>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 <c:set scope="page" var="extraCss" value="${requestScope[Constants.REQ_ATTR_STYLESHEET]}"/>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 <%-- Define an alias for the module info --%>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54
15
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
55 <%-- Apply the session locale (should always be present, but check nevertheless) --%>
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
56 <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}">
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
57 <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/>
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
58 </c:if>
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
59
70
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
60 <%-- Selected project, if any --%>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
61 <c:set scope="page" var="selectedProject" value="${sessionScope[ProjectsModule.SESSION_ATTR_SELECTED_PROJECT]}"/>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
62
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 <!DOCTYPE html>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64 <html>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 <head>
46
1574965c7dc7 fixes error pages and adds referer link to error page if it comes from the application
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
66 <base href="${baseHref}">
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67 <title>LightPIT -
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 <fmt:bundle basename="${moduleInfo.bundleBaseName}">
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 <fmt:message key="${moduleInfo.titleKey}" />
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 </fmt:bundle>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71 </title>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 <meta charset="UTF-8">
47
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
73 <c:if test="${not empty redirectLocation}">
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
74 <meta http-equiv="refresh" content="0; URL=${redirectLocation}">
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
75 </c:if>
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 <link rel="stylesheet" href="lightpit.css" type="text/css">
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77 <c:if test="${not empty extraCss}">
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 <link rel="stylesheet" href="${extraCss}" type="text/css">
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79 </c:if>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 </head>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 <body>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
82 <div id="mainMenu">
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83 <c:forEach var="menu" items="${mainMenu}">
70
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
84 <div class="menuEntry"
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
85 <c:set var="menuPath" value="/${menu.pathName}"/>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
86 <c:if test="${fn:startsWith(requestPath, menuPath)}">
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
87 data-active
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
88 </c:if>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
89 >
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
90 <a href="${menu.pathName}">
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
91 <fmt:bundle basename="${menu.resourceKey.bundle}">
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
92 <fmt:message key="${menu.resourceKey.key}"/>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
93 </fmt:bundle>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
94 </a>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
95 </div>
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
96 </c:forEach>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
97 </div>
70
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
98 <div id="breadcrumbs">
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
99 <%-- TODO: find a strategy to define the breadcrumbs --%>
821c4950b619 removes the sub menu and removes the home module
Mike Becker <universe@uap-core.de>
parents: 47
diff changeset
100 </div>
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
101 <div id="content-area">
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
102 <c:if test="${not empty fragment}">
15
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
103 <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/>
47
57cfb94ab99f projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents: 46
diff changeset
104 <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/>
15
bb594abac796 language selector completed
Mike Becker <universe@uap-core.de>
parents: 13
diff changeset
105 <c:import url="${fragment}" />
13
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
106 </c:if>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
107 </div>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
108 </body>
f4608ad6c947 adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff changeset
109 </html>

mercurial