From 5b0332a70bf0ef1252cc4c600160123dc1cfd1ec Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Fri, 8 Mar 2019 10:36:49 +0100 Subject: [PATCH] Add compact view --- app/routes.py | 9 +++++++++ app/templates/base.html | 3 +++ 2 files changed, 12 insertions(+) diff --git a/app/routes.py b/app/routes.py index 925e0da..c51255e 100644 --- a/app/routes.py +++ b/app/routes.py @@ -17,6 +17,9 @@ AHRS_PLOTS = [['yaw_calib'], ['pitch_calib'], ['roll_calib']] TRIGGER_PLOTS = [['trigger_rates'], ['trigger_rates_lin']] K40_PLOTS = [['intradom'], ['angular_k40rate_distribution']] RTTC_PLOTS = [['rttc']] +COMPACT_PLOTS = [['dom_activity', 'dom_rates', 'pmt_rates', 'pmt_hrv'], + ['trigger_rates', 'trigger_rates_lin'], + ['ztplot', 'triggermap']] if exists(CONFIG_PATH): config = toml.load(CONFIG_PATH) @@ -80,6 +83,12 @@ def ahrs(): return render_template('plots.html', plots=AHRS_PLOTS) +@app.route('/compact.html') +@requires_auth +def compact(): + return render_template('plots.html', plots=COMPACT_PLOTS) + + @app.route('/rttc.html') @requires_auth def rttc(): diff --git a/app/templates/base.html b/app/templates/base.html index c5bed59..9bec529 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -47,6 +47,9 @@ <ul class="nav navbar-nav"> <li class="active"><a href="k40.html">K40</a></li> </ul> + <ul class="nav navbar-nav"> + <li class="active"><a href="compact.html">CMPCT</a></li> + </ul> <ul class="nav navbar-nav"> <li class="active"><a href="https://git.km3net.de/km3py/km3mon/issues">Issues</a></li> </ul> -- GitLab