{% import "_charts.html" as charts with context %} {% import "_globals.html" as globals with context %} {% set page_title = globals.all_pages[active_page].0 if not page_title else page_title %} {% set short_title = page_title if not short_title else short_title %} {% if not g.partial %} {{ short_title }} - {{ ledger.options.title }}

{{ ledger.options.title or 'fava' }}{{ ' ▾' if config['LEDGERS']|length > 1 else '' }}{{ page_title }} {% if config['LEDGERS']|length > 1 %}
    {% for file_slug, file_ledger in config['LEDGERS'].items() %}
  • {{ file_ledger.options.title or 'fava' }}
  • {% endfor %}
{% endif %}

{%- endif %}
{% block content %} {% if content %} {{ content|safe }} {% else %} {% include active_page + '.html' %} {% endif %} {% endblock %} {%- if not g.partial %}
{%- endif %}