diff --git a/app/routes.py b/app/routes.py index 17b1d6aff757119c4e853a24594488e5a8cdfac5..890348ffc996a65fcc2570d6a5f8037a8c75d627 100644 --- a/app/routes.py +++ b/app/routes.py @@ -151,6 +151,13 @@ def trigger(): return render_template('plots.html', plots=expand_wildcards(TRIGGER_PLOTS)) +@app.route('/logs.html') +@requires_auth +def logs(): + msg_logs = glob("logs/MSG*.log") + return render_template('logs.html', logs=msg_logs) + + @app.route('/plots/<path:filename>') @requires_auth def custom_static(filename): diff --git a/app/templates/logs.html b/app/templates/logs.html new file mode 100644 index 0000000000000000000000000000000000000000..24ff332874f1b0fbf050f4b0f1d67e48e432c021 --- /dev/null +++ b/app/templates/logs.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block logs %} + + <div class="container-fluid" id="logs"> + {% for filename in logs %} + <div class="row"> + <div class="col-md-12"> + {{ filename }} + </div> + </div> + {% endfor %} + </div> + +{% endblock %}