<%! use_html5 = True %> <%inherit file="//layout/base.html" /> <%namespace name="lib" file="//lib.html" /> <%namespace name="helpers" file="//admin/_helpers.html" import="renderBreadcrumbs"/> <%def name="title()">${_('Manager')} - ${parent.title()} <%def name="get_breadcrumbs()"> <% return [] %> <% from splunk.appserver.mrsparkle.lib import util, cached import time app = APP if not app: app = {'id':'search', 'label':'Search'} year = time.strftime('%Y') appListing = [ {'label': appList[x]['label'], 'uri':make_url(['/app', x]), 'id': x} for x in appList if x!='launcher'] # Sort app list by label, ignoring case appListing.sort(lambda a, b: cmp(a['label'].lower(), b['label'].lower())) # launcher/Home is displayed at the end of the menu if it's available if 'launcher' in appList: launcherApp = {'label': appList['launcher']['label'], 'uri':make_url(['/app', 'launcher']), 'id': 'launcher'} else: launcherApp = None endpoints = set(cached.getEntities('data/ui/manager', count=-1, namespace='search')) canInstallApps = 'data_inputs_monitor' in endpoints %>
    « ${_("Back to %s") % _(app['label'])|h}
    % if hasattr(self, 'header'): ${self.header()} % endif
    % if hasattr(self, 'leftColumnContainer') and hasattr(self, 'rightColumnContainer'):
    ${next.body()}
    ${next.leftColumnContainer()}
    ${next.rightColumnContainer()}
    % elif hasattr(self, 'leftColumnContainer'):
    ${next.body()}
    ${next.leftColumnContainer()}
    % else: ${next.body()} % endif

    ${ _("Copyright © 2005-%(year)s Splunk Inc. All rights reserved.") % dict(year=year)}
    ${_('version %(version)s, build %(build_number)s') % dict(version=cherrypy.config.get('version_label'), build_number=cherrypy.config.get('build_number'))}

    ##
    ## ## base overrides ## ## js needs to be included in head of page due to admin architecture for re-use. <%def name="head()"> <%lib:script_tags files="${['/static/js/contrib/jquery.cookie.js', '/static/js/splunk.jquery.csrf_protection.js']}" /> <% parent.head() %> <%def name="js()"> ${parent.js()} ${lib.script_tags(files=[ "/static/js/contrib/lowpro_for_jquery.js", "/static/js/contrib/json2.js", "/static/js/contrib/swfobject.js", "/static/js/contrib/jquery-ui-1.8.5.custom.min.js", "/static/js/contrib/jquery.form.js", "/static/js/contrib/jquery.trap.min.js", "/static/js/contrib/jquery.bgiframe.min.js", "/static/js/contrib/strftime.js", # splunk packages "/static/js/logger.js", "/static/js/error.js", "/static/js/session.js", "/static/js/messenger.js", "/static/js/menu_builder.js", "/static/js/admin.js", "/static/js/admin_lite.js", "/static/js/time_range.js", "/static/js/popup.js", "/static/js/textarea_resize.js", "/static/js/window.js", "/static/js/message.js", "/static/js/util.js", # patch the draggables lib for ios support "/static/js/splunk.jquery.ios-drag-patch.js", # Check for the X-Splunk-Messages-Available flag and instruct the Messenger to update itself "/static/js/splunk.jquery.check_messages.js", "/static/js/init.js" ])} <%def name="css()"> <%coreCSSFiles = [ '/static/css/view.css', '/static/css/tipTip.css', '/static/css/skins/default/default.css', '/static/css/print.css', '/static/css/admin.css', '/static/css/admin_lite.css', '/modules/nav/AccountBar.css', '/modules/nav/ManagerBar.css', '/modules/messaging/Message.css', '/modules/paginator/paginator.css' ] %> <%lib:stylesheet_tags files="${coreCSSFiles}" />