From 35906e5c225563fab6f730c8aab0600d7b0c6074 Mon Sep 17 00:00:00 2001 From: Bjarke Madsen <bjarke.madsen@geant.org> Date: Fri, 19 Feb 2021 11:33:06 +0100 Subject: [PATCH] Add template for common y-axes --- .../templating/templates/shared/yaxes.json.j2 | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 brian_dashboard_manager/templating/templates/shared/yaxes.json.j2 diff --git a/brian_dashboard_manager/templating/templates/shared/yaxes.json.j2 b/brian_dashboard_manager/templating/templates/shared/yaxes.json.j2 new file mode 100644 index 0000000..aa25fcc --- /dev/null +++ b/brian_dashboard_manager/templating/templates/shared/yaxes.json.j2 @@ -0,0 +1,35 @@ +{% if type == 'errors' %} +{ + "format": "none", + "label": "err/s", + "logBase": 1, + "max": null, + "min": 0, + "show": true +}, +{ + "format": "none", + "label": "err/s", + "logBase": 1, + "max": null, + "min": 0, + "show": true +} +{% else %} +{ + "format": "bps", + "label": "bits per second", + "logBase": 1, + "max": null, + "min": "", + "show": true +}, +{ + "format": "bps", + "label": "bits per second", + "logBase": 1, + "max": null, + "min": "", + "show": true +} +{% endif %} \ No newline at end of file -- GitLab