diff --git a/app/routes.py b/app/routes.py index 925e0da6a214cce23c80f44ef1a7a9f7e3cd6220..c51255e109469f7b73207a6a3140b5a42db8d399 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 c5bed593ae2e1e62d9e87c351366369f74698244..9bec529909aedf3059c2e4b5825bbadc09c106e0 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>