{% extends './layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, category, start, end) }} {% endblock %} {% block content %}
{% if Route.getCurrentRoute.getName == 'categories.show' %} {# both charts #}

{{ trans('firefly.chart_category_in_period', {name: category.name, start: start.isoFormat(monthAndDayFormat), end: end.isoFormat(monthAndDayFormat) }) }}

{{ trans('firefly.chart_category_all', {name: category.name }) }}

{% endif %} {% if Route.getCurrentRoute.getName == 'categories.show.all' %} {# all chart #}

{{ trans('firefly.chart_category_all', {name: category.name }) }}

{% endif %} {% if attachments.count() > 0 %}

{{ 'attachments'|_ }}

{% include 'list.attachments' %}
{% endif %}
{% if periods|length > 0 %}

{{ 'showEverything'|_ }}

{% endif %}

{{ 'transactions'|_ }}

{% if periods|length > 0 %} {% include 'list.groups' %}

{{ 'show_all_no_filter'|_ }}

{% else %} {% include 'list.groups' %}

{{ 'show_the_current_period_and_overview'|_ }}

{% endif %}
{% if periods|length > 0 %}
{% include 'list.periods' %}
{% endif %}
{% endblock %} {% block scripts %} {# required for groups.twig #} {% endblock %}