httpheader.jspf revision 1254
1186N/A<%--
1186N/A$Id$
1186N/A
144N/ACDDL HEADER START
144N/A
144N/AThe contents of this file are subject to the terms of the
144N/ACommon Development and Distribution License (the "License").
144N/AYou may not use this file except in compliance with the License.
144N/A
144N/ASee LICENSE.txt included in this distribution for the specific
144N/Alanguage governing permissions and limitations under the License.
144N/A
144N/AWhen distributing Covered Code, include this CDDL HEADER in each
144N/Afile and include the License file at LICENSE.txt.
144N/AIf applicable, add the following below this CDDL HEADER, with the
144N/Afields enclosed by brackets "[]" replaced with your own identifying
144N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
144N/A
144N/ACDDL HEADER END
144N/A
144N/ACopyright 2007 Sun Microsystems, Inc. All rights reserved.
144N/AUse is subject to license terms.
144N/A
1186N/APortions Copyright 2011 Jens Elkner.
1186N/A
1186N/A--%><%--
1186N/A
1186N/AAll pages, which include this fragment should use the following code snippet
1186N/Ato set the title of the document before the include directive for this fragment:
1186N/A<pre>
1186N/A
1186N/A cfg = PageConfig.get(request);
1186N/A cfg.setTitle("your title");
1186N/A
1186N/A</pre>
1186N/A--%><%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="
1186N/Aorg.opensolaris.opengrok.Info,
1186N/Aorg.opensolaris.opengrok.web.PageConfig"
1186N/A%><%@
1186N/A
1186N/Ainclude file="pageconfig.jspf"
1186N/A
934N/A%><%
1186N/A/* ---------------------- httpheader.jsp start --------------------- */
1186N/A{
1186N/A cfg = PageConfig.get(request);
1186N/A String styleDir = cfg.getCssDir();
1186N/A String ctxPath = request.getContextPath();
1186N/A String dstyle = styleDir + '/' + "style.css";
1186N/A String pstyle = styleDir + '/' + "print.css";
830N/A%><?xml version="1.0" encoding="UTF-8"?>
1186N/A<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
1186N/A "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
850N/A<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
144N/A<head>
1186N/A<meta name="robots" content="noindex,nofollow" />
1186N/A<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
1186N/A<meta name="generator" content="<%=Info.getVersion()%> (<%=Info.getRevision()%>)" />
1186N/A<link rel="icon" href="<%=styleDir%>/img/icon.png" type="image/png" />
1186N/A<link rel="stylesheet" type="text/css" media="all"
1186N/A title="Default" href="<%= dstyle %>" />
1186N/A<link rel="alternate stylesheet" type="text/css" media="all"
1186N/A title="Paper White" href="<%= pstyle %>" />
1186N/A<link rel="stylesheet" type="text/css" href="<%=styleDir%>/print.css" media="print" />
1186N/A<link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.tooltip.css" />
1186N/A<%-- TODO Bug 11749
1186N/A <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.autocomplete.css" />
1186N/A <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.combo.css%>" />
1186N/A--%>
1186N/A<link rel="search" href="<%=ctxPath%>/opensearch"
1186N/A type="application/opensearchdescription+xml"
1186N/A title="OpenGrok Search for current project(s)" />
1186N/A<script type="text/javascript" src="<%=ctxPath%>/jquery-1.4.4.min.js"></script>
1186N/A<script type="text/javascript" src="<%=ctxPath%>/jquery.tooltip-1.3.pack.js"></script>
1254N/A<%--<script type="text/javascript" src="<%=ctxPath%>/jquery.autocomplete-1.1.pack.js"></script> --%>
1186N/A<script type="text/javascript" src="<%=ctxPath%>/utils.js"></script>
1186N/A<title><%=cfg.getTitle()%></title><%
1186N/A out.write(cfg.getHeaderData());
1186N/A%>
1186N/A</head><%
1186N/A}
1186N/A/* ---------------------- httpheader.jsp end --------------------- */
1186N/A%>