Skip to content

Commit

Permalink
fix: title in input and configuration page templates
Browse files Browse the repository at this point in the history
  • Loading branch information
harshpatel-crest committed Feb 26, 2021
1 parent 6d08509 commit 6328fdf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<%!
app_name = cherrypy.request.path_info.split('/')[3]

%>\
<!doctype html>
<html class="no-js" lang="">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>${_('Configuration')}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
</head>

<body>
<script src="${make_url('/config?autoload=1')}" crossorigin="use-credentials"></script>
<script src="${make_url('/static/js/i18n.js')}"></script>
<script src="${make_url('/i18ncatalog?autoload=1')}"></script>
<script>
__splunkd_partials__ = ${json_decode(splunkd)};
</script>

<%
page_path = "/static/app/" + app_name + "/js/build/" + page + ".js"
%>

<script src="${make_url(page_path)}"></script>
</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>${_('Loading...')}</title>
<title>${_('Inputs')}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
</head>
Expand All @@ -22,7 +22,7 @@
</script>

<%
page_path = "/static/app/" + app_name + "/pages/" + page + ".js"
page_path = "/static/app/" + app_name + "/js/build/" + page + ".js"
%>

<script src="${make_url(page_path)}"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<view template="${package.name}:/templates/base.html" type="html" isDashboard="False">
<view template="${package.name}:/templates/configuration.html" type="html" isDashboard="False">
<label>Configuration</label>
</view>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<view template="${package.name}:/templates/base.html" type="html" isDashboard="False">
<view template="${package.name}:/templates/inputs.html" type="html" isDashboard="False">
<label>Inputs</label>
</view>

0 comments on commit 6328fdf

Please sign in to comment.