httpheader.jspf revision e108d43e59336eaf96f0976ee92944719bbf2ac9
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<%--
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner$Id$
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCDDL HEADER START
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeThe contents of this file are subject to the terms of the
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenCommon Development and Distribution License (the "License").
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeYou may not use this file except in compliance with the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeSee LICENSE.txt included in this distribution for the specific
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbyelanguage governing permissions and limitations under the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeWhen distributing Covered Code, include this CDDL HEADER in each
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbyefile and include the License file at LICENSE.txt.
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeIf applicable, add the following below this CDDL HEADER, with the
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbyefields enclosed by brackets "[]" replaced with your own identifying
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbyeinformation: Portions Copyright [yyyy] [name of copyright owner]
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCDDL HEADER END
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
120673b48c9dfd56995383365708d9789cf0f615Knut Anders HatlenCopyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerPortions Copyright 2011 Jens Elkner.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen--%><%--
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerAll pages, which include this fragment should use the following code snippet
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerto set the title of the document before the include directive for this fragment:
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<pre>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen cfg = PageConfig.get(request);
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen cfg.setTitle("your title");
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner</pre>
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal--%><%@page import="org.opensolaris.opengrok.web.Prefix"%>
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerorg.opensolaris.opengrok.Info,
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerorg.opensolaris.opengrok.web.PageConfig"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner%><%@
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elknerinclude file="pageconfig.jspf"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
73604b941d551ab22073a8e4ac9688a2276d7e76Knut Anders Hatlen%><%
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner/* ---------------------- httpheader.jsp start --------------------- */
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner{
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen cfg = PageConfig.get(request);
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen String styleDir = cfg.getCssDir();
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen String ctxPath = request.getContextPath();
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen String dstyle = styleDir + '/' + "style.css";
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen String pstyle = styleDir + '/' + "print.css";
9b1dea974e126ecb07a1f6d6cf9d2b637c8a47a0Lubos Kosco%><?xml version="1.0" encoding="UTF-8"?>
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
981e542f40f5acaf95b69c5854e5ffb080204242Lubos Kosco<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye<head>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<meta name="robots" content="noindex,nofollow" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco<meta name="generator" content="{OpenGrok <%=Info.getVersion()%> (<%=Info.getRevision()%>)" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="icon" href="<%=styleDir%>/img/icon.png" type="image/png" />
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen<link rel="stylesheet" type="text/css" media="all"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen title="Default" href="<%= dstyle %>" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="alternate stylesheet" type="text/css" media="all"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen title="Paper White" href="<%= pstyle %>" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="stylesheet" type="text/css" href="<%=styleDir%>/print.css" media="print" />
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger<link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery-ui-1.12.0-custom.min.css" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.tooltip.css" />
9c98bbdfbc6de66b588aed9e1711e3fb9de0bf7eKryštof Tulinger<link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.tablesorter.css" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<%-- TODO Bug 11749
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.autocomplete.css" />
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.combo.css%>" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner--%>
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal<%
6d14c05ab4d1a8fac3b41ca3c0fe1e81cb936bd2Vladimir Kotalif (cfg.getPrefix().equals(Prefix.HIST_L)) {
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal out.write("<link rel=\"alternate\" type=\"application/rss+xml\" " +
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal "title=\"RSS feed for " + cfg.getPath() + "\" " +
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal "href=\"" + ctxPath + Prefix.RSS_P + cfg.getPath() + "\" />");
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal}
bfb1d2d99af7f7441ec8b537d3412ad8f8a9fa2aVladimir Kotal%>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="search" href="<%=ctxPath%>/opensearch"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen type="application/opensearchdescription+xml"
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen title="OpenGrok Search for current project(s)" />
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger<script type="text/javascript" src="<%=ctxPath%>/js/jquery-3.1.0.min.js"></script>
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger<script type="text/javascript" src="<%=ctxPath%>/js/jquery-ui-1.12.0-custom.min.js"></script>
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger<script type="text/javascript" src="<%=ctxPath%>/js/jquery.tablesorter-2.26.6.min.js"></script>
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger<script type="text/javascript" src="<%=ctxPath%>/js/tablesorter.parsers.js"></script>
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger<%--<script type="text/javascript" src="<%=ctxPath%>/js/jquery.autocomplete-1.1.pack.js"></script> --%>
e108d43e59336eaf96f0976ee92944719bbf2ac9Kryštof Tulinger<script type="text/javascript" src="<%=ctxPath%>/js/utils.js"></script>
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen<title><%=cfg.getTitle()%></title><%
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen out.write(cfg.getHeaderData());
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner%>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner</head><%
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner}
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner/* ---------------------- httpheader.jsp end --------------------- */
d137c0bf04fcd2fd174ec2ef1d94bcb7669d6b4eVladimir Kotal%>