Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the front page of website #163

Merged
merged 9 commits into from
Dec 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions descqaweb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
Full details about the catalogs and tests, and how to contribute, are available <a href="https://confluence.slac.stanford.edu/x/Z0uKDQ" target="_blank">here</a> (collaborators only).
The source code of DESCQA is hosted in <a href="https://github.com/LSSTDESC/descqa/" target="_blank">this GitHub repo</a>.
'''

use_latest_run_as_home = False
13 changes: 8 additions & 5 deletions descqaweb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
29 changes: 29 additions & 0 deletions descqaweb/templates/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<div class="homeinfo">
<h3>{{ general_info }}
<br><br>

<span style="color:red;">Apologies! We are in the process of revamping this front page!</span><br>
If you have ideas to contribute, please comment in <a class="everblue" href="https://github.com/LSSTDESC/descqa/issues/160">LSSTDESC/descqa#160</a>.<br><br>

In the meantime, if you are looking for results from specific catalogs or tests,
you can use the search features in the <a class="everblue" href="?run=all">list of all runs</a>.<br>
Here are a few examples:<br>
<ul>
<li><a class="everblue" href="?users=kovacs&catalogs=cosmoDC2_v1.1.4&run=all&months=6">cosmoDC2 v1.1.4 (for Run 2.1)</a></li>
<li><a class="everblue" href="?users=kovacs&catalogs=cosmoDC2_v1.0&run=all&months=6">cosmoDC2 v1.0 (for Run 2.0)</a></li>
<li><a class="everblue" href="?users=kovacs&catalogs=proto-dc2_v3.0&run=all&months=12">protoDC2 v3.0 (for Run 1.2)</a></li>
<li><a class="everblue" href="?users=kovacs&catalogs=proto-dc2_v2.1.2&run=all&months=12">protoDC2 v2.1.2 (for Run 1.1)</a></li>
</ul>
<br>

When navigating the DESCQA tests, you may find the following links useful:<br>
<ul>
<li><a class="everblue" href="https://github.com/LSSTDESC/gcr-catalogs#available-catalogs">List of available catalogs</a> (that can be accessed by DESCQA), including a brief description of each catalog</li>
<li><a class="everblue" href="https://github.com/LSSTDESC/descqa/tree/master/descqa/configs">List of available DESCQA tests</a> (each yaml file has a "description" field)</li>
<li><a class="everblue" href="https://confluence.slac.stanford.edu/display/LSSTDESC/DC2+Data+Product+Overview">DC2 Data Product Overview</a> (confluence log-in required)</a></li>
</ul>

</h3>
<script>document.getElementById("pleasewait").style.display="none";</script>
</body>
</html>