{% extends "base-template.html" -%} {% block title -%}pyvisjs{% endblock -%} {% block head_scripts -%} {{ super() }} {% if "filtering" in jinja -%} {% endif %} {% if "tables" in jinja -%} {% endif %} {% if "sankey" in jinja -%} {% endif %} {% endblock -%} {% block head_style %} {{ super() }} html, body { height: 100%; margin: 0; } .container { display: flex; flex-direction: column; height: 100vh; } .row.flex-grow-1 { flex-grow: 1; } {% if "filtering" in jinja -%} .option { font-weight: normal; } .optgroup { font-weight: bold; } {% endif %} {% if "tables" in jinja -%} .display { font-family: 'JetBrains Mono'; font-size: 12px; } {% endif %} {% endblock %} {% block content -%} {{ super() }}
{% if "filtering" in jinja -%}
{% include "select-edge-filter.html" -%}
{% endif %}
{% with tables = jinja.get("tables", None) -%} {% if tables -%}
{% if "left" in tables %}
{% include "data-table-left.html" -%}
{% endif %} {% if "right" in tables %}
{% include "data-table-right.html" -%}
{% endif %}
{% if "bottom" in tables %}
{% include "data-table-bottom.html" -%}
{% endif %} {% endif %} {% endwith %} {% if "sankey" in jinja -%}
{% endif %}
{% endblock %} {% block javascript %} {{ super() }} {% if "filtering" in jinja -%} {% include "init_tomSelect.js" %} {% endif %} {% include "draw_title.js" %} {% if "tables" in jinja -%} {% include "init_dataTables.js" %} {% endif %} {% if "sankey" in jinja -%} {% include "init_sankey.js" %} {% endif %} {% endblock %}