diff --git a/stack/monitor/monitor.cfg.in b/stack/monitor/monitor.cfg.in index 5dd187510333ecd36c422b0bd0857b3798b27406..338d6df95165ae70f31393d52923d8566ddf4954 100644 --- a/stack/monitor/monitor.cfg.in +++ b/stack/monitor/monitor.cfg.in @@ -92,6 +92,7 @@ context = raw index_template $${deploy-index-template:location}/$${deploy-index-template:filename} key password zero-parameters:monitor-password raw extra_eggs_interpreter ${buildout:directory}/bin/${extra-eggs:interpreter} + raw default_page /index.cgi?script=$${monitor-parameters:knowledge0-cgi}%2F$${deploy-settings-cgi:filename} [deploy-index-template] recipe = hexagonit.recipe.download diff --git a/stack/monitor/webfiles/index.cgi.in b/stack/monitor/webfiles/index.cgi.in index 84a30e1bbf87f28336eb06e9f6d635e8bcdb2772..beb4ace863acd2bb56a5e701d88505af61f2733e 100755 --- a/stack/monitor/webfiles/index.cgi.in +++ b/stack/monitor/webfiles/index.cgi.in @@ -108,4 +108,4 @@ else: else: html_base = jinja2.Template(open('{{ index_template }}').read()) print - print html_base.render(tree=make_menu()) + print html_base.render(tree=make_menu(), default_page="{{ default_page }}") diff --git a/stack/monitor/webfiles/index.html.jinja2 b/stack/monitor/webfiles/index.html.jinja2 index efb2bdf022d0b62fb86b37943b760cc184f8dd2a..b97fdc836133779c386645c09111e26ee7a17fdc 100644 --- a/stack/monitor/webfiles/index.html.jinja2 +++ b/stack/monitor/webfiles/index.html.jinja2 @@ -21,7 +21,7 @@ </div> </div> <div id="content"> - <iframe src="/index.cgi"> + <iframe src="{{ default_page }}"> </iframe> </div> </body>