{% extends "layouts/base.html" %} {% if view %} {% block title %} Dashboards > {{ view.name }} {% endblock %} {% endif %} {% block custom_css %} {{ super() }} {% if view %} {% if active_charts %} {% for label, chart_group in charts_config.items() %} {# Load any dependencies from other charts if applicable. #} {% if chart_group.dependencies %} {% for dep in chart_group.dependencies %} {% if charts_config[dep].css_url %} {% for url in charts_config[dep].css_url %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% if chart_group.enabled and chart_group.css_url and label in active_charts %} {% for url in chart_group.css_url %} {% endfor %} {% endif %} {% endfor %} {% else %} {% for label, chart_group in charts_config.items() %} {% if chart_group.dependencies %} {% for dep in chart_group.dependencies %} {% if charts_config[dep].css_url %} {% for url in charts_config[dep].css_url %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% if chart_group.enabled and chart_group.css_url %} {% for url in chart_group.css_url %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endif %} {% endblock %} {% block body %} {{ super() }}