httpheader.jspf revision d7375a57cb329e3ca4984fc3b2923b177ddff562
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<%--
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner$Id$
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCDDL HEADER START
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeThe contents of this file are subject to the terms of the
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCommon 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
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCopyright 2007 Sun Microsystems, Inc. All rights reserved.
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeUse is subject to license terms.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerPortions Copyright 2011 Jens Elkner.
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner--%><%--
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
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner cfg = PageConfig.get(request);
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner cfg.setTitle("your title");
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner</pre>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner--%><%@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{
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner cfg = PageConfig.get(request);
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner String styleDir = cfg.getCssDir();
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner String ctxPath = request.getContextPath();
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner String dstyle = styleDir + '/' + "style.css";
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner String pstyle = styleDir + '/' + "print.css";
9b1dea974e126ecb07a1f6d6cf9d2b637c8a47a0Lubos Kosco%><?xml version="1.0" encoding="UTF-8"?>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner "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" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<meta name="generator" content="<%=Info.getVersion()%> (<%=Info.getRevision()%>)" />
d7375a57cb329e3ca4984fc3b2923b177ddff562haufelex<meta http-equiv="X-UA-Compatible" content="IE=8" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="icon" href="<%=styleDir%>/img/icon.png" type="image/png" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="stylesheet" type="text/css" media="all"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner title="Default" href="<%= dstyle %>" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="alternate stylesheet" type="text/css" media="all"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner title="Paper White" href="<%= pstyle %>" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="stylesheet" type="text/css" href="<%=styleDir%>/print.css" media="print" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.tooltip.css" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<%-- TODO Bug 11749
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.autocomplete.css" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.combo.css%>" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner--%>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<link rel="search" href="<%=ctxPath%>/opensearch"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner type="application/opensearchdescription+xml"
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner title="OpenGrok Search for current project(s)" />
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<script type="text/javascript" src="<%=ctxPath%>/jquery-1.4.4.min.js"></script>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<script type="text/javascript" src="<%=ctxPath%>/jquery.tooltip-1.3.pack.js"></script>
c348673388028dc778d50af0246971643ab42fdaLubos Kosco<%--<script type="text/javascript" src="<%=ctxPath%>/jquery.autocomplete-1.1.pack.js"></script> --%>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<script type="text/javascript" src="<%=ctxPath%>/utils.js"></script>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner<title><%=cfg.getTitle()%></title><%
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner out.write(cfg.getHeaderData());
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner%>
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner</head><%
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner}
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner/* ---------------------- httpheader.jsp end --------------------- */
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner%>