mast.jsp revision 6043bc503b0be1801d14dc51a81bd5921445ce7a
274N/ASee LICENSE.txt included in this distribution for the specific
274N/Afile and include the License file at LICENSE.txt.
6295N/A<%@page import="org.json.simple.JSONArray"%>
618N/A<%@page import="org.opensolaris.opengrok.configuration.messages.Message"%>
1244N/A<%@page import="java.util.SortedSet"%>
6295N/A<%@page import="org.opensolaris.opengrok.configuration.RuntimeEnvironment"%>
6019N/A cfg = PageConfig.get(request);
6295N/A String redir = cfg.canProcess();
6295N/A if (redir == null || redir.length() > 0) {
6295N/A response.sendRedirect(redir);
long flast = cfg.getLastModified();
if (request.getDateHeader("If-Modified-Since") >= flast) {
response.setDateHeader("Last-Modified", flast);
if (request.getCharacterEncoding() == null) {
request.setCharacterEncoding("UTF-8");
String path = cfg.getPath();
cfg.setTitle("Cross Reference: " + path);
String context = request.getContextPath();
String uriEncodedPath = cfg.getUriEncodedPath();
String rev = cfg.getRequestedRevision();
include file="httpheader.jspf"
<script type="text/javascript">/* <![CDATA[ */
document.rev = getParameter("r");
document.domReady.push(domReadyMast);
document.pageReady.push(pageReadyMast);
<form action="<%= context + Prefix.SEARCH_P %>">
include file="pageheader.jspf"
>Cross Reference: <%= cfg.getCrossFilename() %></span><%
String dtag = cfg.getDefineTagsIndex();
if (dtag.length() > 0) {
if (cfg.getProject() != null) {
cfg.getProject().getDescription());
<% if (!messages.isEmpty()) { %>
<a href="<%= context + Prefix.XREF_P %>/">xref</a>: <%= Util
<% if (!messages.isEmpty()) { %>
if (!cfg.hasHistory()) {
%><li><a href="<%= context + Prefix.HIST_L + uriEncodedPath
} else if (cfg.annotate()) {
// taken from get_annotations() from utils.js
+ (window.location.hash ? '&h=' + window.location.hash.substring(1, window.location.hash.length) : '');
if (!cfg.isDir()) {
<li><a href="<%= context + Prefix.RAW_P + uriEncodedPath
<li><a href="<%= context + Prefix.DOWNLOAD_P + uriEncodedPath
Project proj = cfg.getProject();
String[] vals = cfg.getSearchOnlyIn();
<input type="hidden" name="project" value="<%=proj.getDescription()%>" /><%
<input type="hidden" id="contextpath" value="<%=request.getContextPath()%>" />
/* ---------------------- mast.jsp end --------------------- */