foot.jspf revision 14a41f02433890d19b2f871156271e3388cd0845
<%--
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 2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Portions Copyright 2011 Jens Elkner.
--%><%@page import="
java.util.EnumSet,
org.opensolaris.opengrok.web.PageConfig,
org.opensolaris.opengrok.web.Prefix"
%><%!
/* ---------------------- foot.jspf members start --------------------- */
private static EnumSet<Prefix> needAddDiv = EnumSet.of(
Prefix.HIST_L, Prefix.XREF_P, Prefix.DIFF_P, Prefix.MORE_P,
// could NOT find any mapping/reference to those ones:
Prefix.HIST_S, Prefix.XREF_S, Prefix.DIFF_S, Prefix.MORE_S);
/* ---------------------- foot.jspf members end --------------------- */
%><%
/* ---------------------- foot.jspf start --------------------- */
{
cfg = PageConfig.get(request);
%>
<div id="footer">
<p><a href="http://www.opensolaris.org/os/project/opengrok/"
title="Served by OpenGrok"><span id="fti"></span></a></p>
<p>Indexes created <%= cfg.getEnv().getDateForLastIndexRun() %></p><%
if (needAddDiv.contains(cfg.getPrefix())) {
%></div><% // #content
}
// #footer, #page:
%></div>
</div>
</body>
</html>
<%
}
/* ---------------------- foot.jspf end --------------------- */
%>