You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.8 KiB

<%!
if cherrypy.config['product_type'] == 'hunk':
faviconFile = 'favicon_hunk.ico'
elif cherrypy.config['product_type'] == 'enterprise':
faviconFile = 'favicon.ico'
else:
faviconFile = 'favicon.ico'
app_name = cherrypy.request.path_info.split('/')[3]
app_root = "/" + "/".join(["static","app",app_name])
config_qs = dict(autoload=1)
%>\
<!doctype html>
<html class="no-js" lang="">
<head>
<title>Dashboard</title>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="listen to your data" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="${make_url('/static/build/css/bootstrap-enterprise.css')}" />
</head>
<body>
<script src="${make_url('/config', _qs=config_qs)}"></script>
<script src="${make_url('/static/js/i18n.js')}"></script>
<script src="${make_url('/i18ncatalog?autoload=1')}"></script>
<script>
__requirejs_base_url = ${json_decode(make_url('/static/build'))};
__splunkd_partials__ = ${json_decode(splunkd)};
// this is uselful for finding static assets
// this can also be achived on client-side with __splunkd_partials__['/services/server/info'].entry[0].content.staticAssetId and __splunkd_partials__['/servicesNS/nobody/system/apps/local/splunk-dashboard-studio'].entry[0].content.build
__webpack_public_path__ = ${json_decode(make_url('/static/app/splunk-dashboard-studio/build/'))};
</script>
<script src="${make_url('/static/app/splunk-dashboard-studio/build/runtime.js')}"></script>
<script src="${make_url('/static/app/splunk-dashboard-studio/build/vendors.js')}"></script>
<script src="${make_url('/static/app/splunk-dashboard-studio/build/%s.js' % (page))}"></script>
</body>
</html>