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