Sat, 31 Oct 2020 09:15:57 +0100
fixes default values for version and component form
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 | 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" %> |
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
29 | <%@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
|
30 | <%@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
|
31 | <%@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
|
32 | |
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
|
33 | <%-- Make the base href easily available at request scope --%> |
71 | 34 | <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
|
35 | |
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
|
36 | <%-- 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
|
37 | <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
|
38 | |
109 | 39 | <%-- Define an alias for the navigation menu --%> |
96
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
40 | <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/> |
71 | 41 | |
74
91d1fc2a3a14
removes that dynamic_fragment bullshit
Mike Becker <universe@uap-core.de>
parents:
71
diff
changeset
|
42 | <%-- Define an alias for the content page name --%> |
91d1fc2a3a14
removes that dynamic_fragment bullshit
Mike Becker <universe@uap-core.de>
parents:
71
diff
changeset
|
43 | <c:set scope="page" var="contentPage" value="${requestScope[Constants.REQ_ATTR_CONTENT_PAGE]}"/> |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | |
47
57cfb94ab99f
projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
45 | <%-- 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
|
46 | <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
|
47 | |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | <%-- 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
|
49 | <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
|
50 | |
78
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
51 | <%-- Define an alias for the bundle name --%> |
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
52 | <c:set scope="page" var="bundleName" value="${requestScope[Constants.REQ_ATTR_RESOURCE_BUNDLE]}"/> |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
53 | |
15
bb594abac796
language selector completed
Mike Becker <universe@uap-core.de>
parents:
13
diff
changeset
|
54 | <%-- 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
|
55 | <c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"> |
71 | 56 | <fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/> |
15
bb594abac796
language selector completed
Mike Becker <universe@uap-core.de>
parents:
13
diff
changeset
|
57 | </c:if> |
bb594abac796
language selector completed
Mike Becker <universe@uap-core.de>
parents:
13
diff
changeset
|
58 | |
78
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
59 | <%-- Load resource bundles --%> |
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
60 | <fmt:setBundle scope="request" basename="${bundleName}"/> |
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
61 | <fmt:setBundle scope="request" var="lightpit_bundle" basename="localization.lightpit"/> |
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
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> |
71 | 65 | <head> |
66 | <base href="${baseHref}"> | |
78
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
67 | <title>LightPIT - <fmt:message key="pageTitle"/></title> |
71 | 68 | <meta charset="UTF-8"> |
69 | <c:if test="${not empty redirectLocation}"> | |
47
57cfb94ab99f
projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
70 | <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
71 | 71 | </c:if> |
72 | <link rel="stylesheet" href="lightpit.css" type="text/css"> | |
73 | <c:if test="${not empty extraCss}"> | |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
74 | <link rel="stylesheet" href="${extraCss}" type="text/css"> |
71 | 75 | </c:if> |
76 | </head> | |
77 | <body> | |
78 | <div id="mainMenu"> | |
145
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
79 | <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> > |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
80 | <a href="projects/"> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
81 | <fmt:message bundle="${lightpit_bundle}" key="menu.projects"/> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
82 | </a> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
83 | </div> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
84 | <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/teams/')}">data-active</c:if> > |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
85 | <a href="teams/"> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
86 | <fmt:message bundle="${lightpit_bundle}" key="menu.users"/> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
87 | </a> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
88 | </div> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
89 | <div class="menuEntry" <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> > |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
90 | <a href="language/"> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
91 | <fmt:message bundle="${lightpit_bundle}" key="menu.languages"/> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
92 | </a> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
93 | </div> |
71 | 94 | </div> |
96
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
95 | <div> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
96 | <c:if test="${not empty navMenu}"> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
97 | <div id="sideMenu"> |
109 | 98 | <c:import url="${navMenu}"/> |
96
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
99 | </div> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
100 | </c:if> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
101 | <div id="content-area" <c:if test="${not empty navMenu}">class="sidebar-spacing"</c:if>> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
102 | <c:if test="${not empty contentPage}"> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
103 | <c:import url="${contentPage}"/> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
104 | </c:if> |
71 | 105 | </div> |
106 | </div> | |
107 | </body> | |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
108 | </html> |