{% import "_charts.html" as charts with context %} {% set partial = request.args.get('partial', False) %} {% set navigation_bar = [ ("", ['income_statement', 'balance_sheet', 'trial_balance', 'journal', 'query']), ("Other", [ 'holdings', 'commodities', 'events', 'statistics']), ("Configuration", [ 'editor', 'options','help']) ] %} {% set all_pages = { 'income_statement': (_('Income Statement'), 'g i'), 'balance_sheet': (_('Balance Sheet'), 'g b'), 'trial_balance': (_('Trial Balance'), 'g t'), 'journal': (_('Journal'), 'g j'), 'query': (_('Query'), 'g q'), 'holdings': (_('Holdings'), 'g h'), 'commodities': (_('Commodities'), 'g c'), 'events': (_('Events'), 'g E'), 'editor': (_('Editor'), 'g e'), 'options': (_('Options'), 'g o'), 'statistics': (_('Statistics'), 'g x'), 'help': (_('Help'), 'g shift+h'), } %} {% set page_title = all_pages[active_page].0 if not page_title else page_title %} {% set short_title = page_title if not short_title else short_title %} {% set user_queries = api.queries[:config['sidebar-show-queries']] %} {% if not partial %} {{ short_title }} - {{ api.title }}

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

{% include "_entry_filters.html" %}
{%- endif %} {% with messages = get_flashed_messages() %} {% if messages %} {% endif %} {% endwith %} {% block content %}{% endblock %} {%- if not partial %}
{% include "overlays/_keyboard_shortcuts.html" %} {% include "overlays/_documents_upload.html" %}
{%- endif %}