xref: /OpenGrok/opengrok-web/src/main/webapp/pageheader.jspf (revision aa18fa2876e3629259023f79466c3f639b53b9d0)
1<%--
2CDDL HEADER START
3
4The contents of this file are subject to the terms of the
5Common Development and Distribution License (the "License").
6You may not use this file except in compliance with the License.
7
8See LICENSE.txt included in this distribution for the specific
9language governing permissions and limitations under the License.
10
11When distributing Covered Code, include this CDDL HEADER in each
12file and include the License file at LICENSE.txt.
13If applicable, add the following below this CDDL HEADER, with the
14fields enclosed by brackets "[]" replaced with your own identifying
15information: Portions Copyright [yyyy] [name of copyright owner]
16
17CDDL HEADER END
18
19Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
20
21--%><%@page import="org.opengrok.web.PageConfig"%>
22<%
23/* ---------------------- pageheader.jspf start --------------------- */
24{
25    PageConfig cfg = PageConfig.get(request);
26    String headerContent = cfg.getEnv().getIncludeFiles().getHeaderIncludeFileContent(false);
27    if (headerContent != null && !headerContent.isBlank()) {
28        %>
29<div id="header">
30    <%= headerContent %>
31</div>
32        <%
33    }
34}
35/* ---------------------- pageheader.jspf end --------------------- */
36%>
37