Mon, 09 Aug 2021 16:25:50 +0200
#156 fixes auto-selection overriding issue data
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 | |
180 | 4 | Copyright 2021 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 | |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
33 | <%-- Version suffix for forcing browsers to update the CSS / JS files --%> |
213
5b55a5318a83
#105 fixes wrong font for form controls
Mike Becker <universe@uap-core.de>
parents:
212
diff
changeset
|
34 | <c:set scope="page" var="versionSuffix" value="20210809"/> |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
35 | |
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 | <%-- Make the base href easily available at request scope --%> |
71 | 37 | <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
|
38 | |
198
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
197
diff
changeset
|
39 | <%-- The feed URL for this page. --%> |
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
197
diff
changeset
|
40 | <c:set scope="page" var="feedHref" value="${requestScope[Constants.REQ_ATTR_FEED_HREF]}"/> |
94f174d591ab
fixes wrong handling of feeds - only one channel per feed is allowed
Mike Becker <universe@uap-core.de>
parents:
197
diff
changeset
|
41 | |
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
|
42 | <%-- 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
|
43 | <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
|
44 | |
109 | 45 | <%-- 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
|
46 | <c:set scope="page" var="navMenu" value="${requestScope[Constants.REQ_ATTR_NAVIGATION]}"/> |
71 | 47 | |
205
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
48 | <%-- Define an alias for the custom page title --%> |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
49 | <c:set scope="page" var="pageTitle" value="${requestScope[Constants.REQ_ATTR_PAGE_TITLE]}"/> |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
50 | |
74
91d1fc2a3a14
removes that dynamic_fragment bullshit
Mike Becker <universe@uap-core.de>
parents:
71
diff
changeset
|
51 | <%-- Define an alias for the content page name --%> |
91d1fc2a3a14
removes that dynamic_fragment bullshit
Mike Becker <universe@uap-core.de>
parents:
71
diff
changeset
|
52 | <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
|
53 | |
47
57cfb94ab99f
projects can now be added and updated
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
54 | <%-- 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
|
55 | <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
|
56 | |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
57 | <%-- 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
|
58 | <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
|
59 | |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
60 | <%-- Define an alias for the optional JS file --%> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
61 | <c:set scope="page" var="javascriptFile" value="${requestScope[Constants.REQ_ATTR_JAVASCRIPT]}"/> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
62 | |
180 | 63 | <%-- Load resource bundle --%> |
195 | 64 | <fmt:setLocale scope="request" value="${pageContext.response.locale}"/> |
180 | 65 | <fmt:setBundle scope="request" basename="localization.strings"/> |
78
bb4c52bf3439
bloat removal 2/3 - moduleInfo
Mike Becker <universe@uap-core.de>
parents:
77
diff
changeset
|
66 | |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | <!DOCTYPE html> |
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | <html> |
71 | 69 | <head> |
70 | <base href="${baseHref}"> | |
205
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
71 | <title> |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
72 | LightPIT |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
73 | <c:if test="${not empty pageTitle}"> - <c:out value="${pageTitle}"/></c:if> |
7725a79416f3
#115 adds custom page titles
Mike Becker <universe@uap-core.de>
parents:
204
diff
changeset
|
74 | </title> |
71 | 75 | <meta charset="UTF-8"> |
76 | <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
|
77 | <meta http-equiv="refresh" content="0; URL=${redirectLocation}"> |
71 | 78 | </c:if> |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
79 | <link rel="stylesheet" href="lightpit.css?v=${versionSuffix}" type="text/css"> |
199
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
80 | <c:if test="${not empty feedHref}"> |
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
81 | <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="${feedHref}"/> |
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
82 | </c:if> |
71 | 83 | <c:if test="${not empty extraCss}"> |
163
a5b9632729b6
adds possibility to specify multiple additional CSS files
Mike Becker <universe@uap-core.de>
parents:
158
diff
changeset
|
84 | <c:forEach items="${extraCss}" var="cssFile"> |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
85 | <link rel="stylesheet" href="${cssFile}?v=${versionSuffix}" type="text/css"> |
163
a5b9632729b6
adds possibility to specify multiple additional CSS files
Mike Becker <universe@uap-core.de>
parents:
158
diff
changeset
|
86 | </c:forEach> |
71 | 87 | </c:if> |
207
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
88 | <c:if test="${not empty javascriptFile}"> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
89 | <script src="${javascriptFile}?v=${versionSuffix}" type="text/javascript"></script> |
479dd7993ef9
#22 adds possibility to edit own comments
Mike Becker <universe@uap-core.de>
parents:
205
diff
changeset
|
90 | </c:if> |
71 | 91 | </head> |
92 | <body> | |
93 | <div id="mainMenu"> | |
199
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
94 | <div class="menuEntry" |
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
95 | <c:if test="${fn:startsWith(requestPath, '/projects/')}">data-active</c:if> > |
145
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
96 | <a href="projects/"> |
180 | 97 | <fmt:message key="menu.projects"/> |
145
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
98 | </a> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
99 | </div> |
199
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
100 | <div class="menuEntry" |
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
101 | <c:if test="${fn:startsWith(requestPath, '/users/')}">data-active</c:if> > |
184
e8eecee6aadf
completes kotlin migration
Mike Becker <universe@uap-core.de>
parents:
180
diff
changeset
|
102 | <a href="users/"> |
180 | 103 | <fmt:message key="menu.users"/> |
145
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
104 | </a> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
105 | </div> |
199
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
106 | <div class="menuEntry" |
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
107 | <c:if test="${fn:startsWith(requestPath, '/language/')}">data-active</c:if> > |
145
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
108 | <a href="language/"> |
180 | 109 | <fmt:message key="menu.languages"/> |
145
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
110 | </a> |
6d2d69fd1c12
removes (now) unnecessary possibility to customize the main menu
Mike Becker <universe@uap-core.de>
parents:
115
diff
changeset
|
111 | </div> |
204 | 112 | <div class="menuEntry" |
113 | <c:if test="${fn:startsWith(requestPath, '/about/')}">data-active</c:if> > | |
114 | <a href="about/"> | |
115 | <fmt:message key="menu.about"/> | |
116 | </a> | |
117 | </div> | |
71 | 118 | </div> |
96
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
119 | <div> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
120 | <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
|
121 | <div id="sideMenu"> |
199
59393c8cc557
#109 adds RSS feed button to project header and changes feed output slightly
Mike Becker <universe@uap-core.de>
parents:
198
diff
changeset
|
122 | <%@include file="../jspf/navmenu.jspf" %> |
96
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
123 | </div> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
124 | </c:if> |
b7b685f31e39
breadcrumb menu is now a sidebar navigation menu
Mike Becker <universe@uap-core.de>
parents:
86
diff
changeset
|
125 | <div id="content-area" <c:if test="${not empty navMenu}">class="sidebar-spacing"</c:if>> |
197 | 126 | <c:import url="${contentPage}"/> |
71 | 127 | </div> |
128 | </div> | |
129 | </body> | |
13
f4608ad6c947
adds dynamic fragments to LightPIT request handling framework + basic language recognition code
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
130 | </html> |