diff --git a/brian_dashboard_manager/templating/render.py b/brian_dashboard_manager/templating/render.py index 2aa06bf9258275ffc8dd239e0003588bcd7e1a40..e80e6195fe3bbac7df3cc28547bc0c3407ceddd2 100644 --- a/brian_dashboard_manager/templating/render.py +++ b/brian_dashboard_manager/templating/render.py @@ -56,12 +56,19 @@ def create_panel(data): return template.render({**data, 'yaxes': yaxes, 'targets': targets}) -def render_dashboard(dashboard): - file = os.path.abspath(os.path.join( - os.path.dirname(__file__), - 'templates', - 'shared', - 'dashboard.json.j2')) +def render_dashboard(dashboard, nren=False): + if nren: + file = os.path.abspath(os.path.join( + os.path.dirname(__file__), + 'templates', + 'nren_access', + 'nren-dashboard.json.j2')) + else: + file = os.path.abspath(os.path.join( + os.path.dirname(__file__), + 'templates', + 'shared', + 'dashboard.json.j2')) with open(file) as f: template = jinja2.Template(f.read())