%namespace name="lib" file="//lib.html" import="*" />\
<%!
import time, string
from splunk.util import safeURLQuote
from splunk.appserver.mrsparkle.lib import config
title = None
use_html5 = False
if cherrypy.config['product_type'] == 'hunk':
faviconFile = 'favicon_hunk.ico'
elif cherrypy.config['product_type'] == 'enterprise':
faviconFile = 'favicon.ico'
else:
faviconFile = 'favicon.ico'
%>\
<%self:render/>
<%def name="render()" filter="string.strip">
% if is_xhr():
<%self:xhrdoc/>
% else:
<%self:pagedoc/>
% endif
%def>
<%def name="xhrdoc()">
<%next:body/>
%def>
##
## define main HTML wrapper
##
<%def name="pagedoc()">
% if self.attr.use_html5:
% else:
% endif
% if not self.attr.use_html5:
% endif
<%self:title/>
## Every page requires these core js files to be loaded first, and in the correct order -->
<%lib:script_tags files="${['/static/js/contrib/deprecated/jquery-1.8.3.js', '/static/js/i18n.js', '/static/js/splunk.js', '/static/js/util.js']}" />
<%self:css/>
<%self:custom_css/>
<%self:head/>
<%self:body_element_open/>
<%next:body/>
<%self:js/>
<%self:js_initialization/>
%def>
##
## define core page components
##
<%def name="title()">
% if self.attr.title:
${self.attr.title|h} - \
% endif:
${_('Splunk') | h}\
%def>
<%def name="css()">%def>
<%def name="custom_css()">%def>
<%def name="head()">%def>
<%def name="js()">%def>
<%def name="js_initialization()">
<%doc>
%doc>
%def>
<%def name="body_element_open()">%def>