<%-- $Id$ CDDL HEADER START The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. See LICENSE.txt included in this distribution for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at LICENSE.txt. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] CDDL HEADER END Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. Portions Copyright 2011 Jens Elkner. Portions Copyright (c) 2018, Chris Fraire . --%><%-- After include you are here: /body/div#page/div#content/ --%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="org.json.simple.JSONArray"%> <%@page import="java.util.SortedSet"%> <%@page import="org.opengrok.indexer.web.messages.MessagesContainer"%> <%@ page session="false" errorPage="error.jsp" import=" java.io.File, java.io.IOException, org.opengrok.indexer.configuration.Project, org.opengrok.indexer.history.HistoryGuru, org.opengrok.indexer.web.EftarFileReader, org.opengrok.indexer.web.PageConfig, org.opengrok.indexer.web.Prefix, org.opengrok.indexer.web.Util"%><% /* ---------------------- mast.jsp start --------------------- */ { PageConfig cfg = PageConfig.get(request); String redir = cfg.canProcess(); if (redir == null || redir.length() > 0) { if (redir == null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); } else { response.sendRedirect(redir); } return; } if (cfg.isNotModified(request, response)) { // the resource was not modified // the code 304 NOT MODIFIED has been inserted to the response return; } // Use UTF-8 if no encoding is specified in the request if (request.getCharacterEncoding() == null) { request.setCharacterEncoding("UTF-8"); } // set the default page title String path = cfg.getPath(); cfg.setTitle(cfg.getPathTitle()); } %> <%@ include file="httpheader.jspf" %>
<% { PageConfig cfg = PageConfig.get(request); String path = cfg.getPath(); String context = request.getContextPath(); String rev = cfg.getRequestedRevision(); JSONArray messages = new JSONArray(); if (cfg.getProject() != null) { messages = Util.messagesToJson(cfg.getProject(), MessagesContainer.MESSAGES_MAIN_PAGE_TAG); } %> <% if (!messages.isEmpty()) { %> <% } %> xref: <%= Util .breadcrumbPath(context + Prefix.XREF_P, path,'/',"",true,cfg.isDir()) %> <% if (rev.length() != 0) { %> (revision <%= Util.htmlize(rev) %>) <% } %> <% String dtag = cfg.getDefineTagsIndex(); if (dtag.length() > 0) { %> (<%= dtag %>)<% } %> <% if (!messages.isEmpty()) { %> ! <% } } %>
<%@ include file="minisearch.jspf" %> <% /* ---------------------- mast.jsp end --------------------- */ %>