<%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 name="xhrdoc()"> <%next:body/> ## ## 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/>
## ## define core page components ## <%def name="title()"> % if self.attr.title: ${self.attr.title|h} - \ % endif: ${_('Splunk') | h}\ <%def name="css()"> <%def name="custom_css()"> <%def name="head()"> <%def name="js()"> <%def name="js_initialization()"> <%doc> <%def name="body_element_open()">