From 72df86db4638f7e700857c5fcaf876916e1041d4 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Mon, 4 Jul 2022 20:16:47 +0200 Subject: [PATCH] feat: online report CDN for bootstrap, jquery When the `online_report` config parameter is set to True, bootstrap and jquery are loaded from a CDN as ploty.js. This results in a much smaller report. Co-authored-by: pradyot-09 --- popmon/visualization/templates/core.html | 22 +++++++++-------- popmon/visualization/templates/footer.html | 28 ++++++++++------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/popmon/visualization/templates/core.html b/popmon/visualization/templates/core.html index fafd0dfa..802b53f4 100644 --- a/popmon/visualization/templates/core.html +++ b/popmon/visualization/templates/core.html @@ -10,20 +10,22 @@ POPMON Report - - + {%- if online_report %} + + {%- endif -%} + - - {% include 'modal-popup.html' %} - {% include 'header.html' %} + {%- include 'modal-popup.html' -%} + {%- include 'header.html' -%} {{ sections }} - {% include 'footer.html' %} - + {%- include 'footer.html' -%} - + \ No newline at end of file diff --git a/popmon/visualization/templates/footer.html b/popmon/visualization/templates/footer.html index a596800b..b29e8268 100644 --- a/popmon/visualization/templates/footer.html +++ b/popmon/visualization/templates/footer.html @@ -1,24 +1,22 @@ -

Copyright © ING WBAA 2022

-
- - - -{% if online_report %} +{%- if online_report -%} -{% endif %} + + + +{%- endif -%}