diff --git a/descqaweb/config.py b/descqaweb/config.py index 64c15ffe..6d8564c9 100644 --- a/descqaweb/config.py +++ b/descqaweb/config.py @@ -21,3 +21,5 @@ Full details about the catalogs and tests, and how to contribute, are available here (collaborators only). The source code of DESCQA is hosted in this GitHub repo. ''' + +use_latest_run_as_home = False diff --git a/descqaweb/main.py b/descqaweb/main.py index 2f8b06c2..19f9b8c4 100644 --- a/descqaweb/main.py +++ b/descqaweb/main.py @@ -61,8 +61,11 @@ def run(): print(env.get_template('header.html').render(full_header=True, please_wait=True, config=config)) sys.stdout.flush() - print(env.get_template('matrix.html').render(**prepare_matrix( - run=_run, - catalog_prefix=form.getfirst('catalog_prefix'), - test_prefix=form.getfirst('test_prefix'), - ))) + if _run or getattr(config, 'use_latest_run_as_home', True): + print(env.get_template('matrix.html').render(**prepare_matrix( + run=_run, + catalog_prefix=form.getfirst('catalog_prefix'), + test_prefix=form.getfirst('test_prefix'), + ))) + else: + print(env.get_template('home.html').render(general_info=config.general_info)) diff --git a/descqaweb/templates/home.html b/descqaweb/templates/home.html new file mode 100644 index 00000000..b3802a9f --- /dev/null +++ b/descqaweb/templates/home.html @@ -0,0 +1,29 @@ +