<commit_before>{% extends 'AppBundle:Layouts:application.html.twig' %}

{% import 'AppBundle:Macros:macros.html.twig' as macros %}

{% set translationDomain = "report-balance" %}
{% trans_default_domain translationDomain %}

{% if report.totalsOffset < 0 %}
    {% set moreless = "less" %}
{% else %}
    {% set moreless = "more" %}
{% endif %}

{% set transOptions = {
'%client%': report.client.firstname | e,
'%moreless%': moreless,
'%pathToAccounts%': path('bank_accounts', {'reportId': report.id})
} %}

{% set readyToBalance = reportStatus.balanceState['state'] != 'not-started' %}
{% set showBalanceCalculations = reportStatus.bankAccountsState['state'] != 'not-started' %}

{% block htmlTitle %}{{ 'htmlTitle' | trans }}{% endblock %}
{% block pageTitle %}{{ 'pageTitle' | trans }}{% endblock %}

{% block linkBack %}
    {{ macros.linkBackStep(backLink, 'back' | trans({}, 'common')) }}
{% endblock %}

{% block pageContent %}
    {% if not readyToBalance %}
        <div class="alert-info panel panel-border-narrow" id="alert-not-started">
            <span class="icon icon-information"></span>
            <div class="alert-message">
                <p>
                     {% if report.hasSection('paDeputyExpenses') %}
                        {{ 'alerts.notStartedPA' | trans(transOptions) }}</p>
                     {% else %}
                        {{ 'alerts.notStarted' | trans(transOptions) }}</p>
                     {% endif %}
            </div>
        </div>
    {% else %}
        {% if report.isTotalsMatch %}
            <div class="alert-success panel panel-border-narrow" id="alert-balanced">
                <span class="icon icon-tick"></span><commit_msg>DDPB-1733 breadcrumbs added<commit_after>{% extends 'AppBundle:Layouts:application.html.twig' %}

{% import 'AppBundle:Macros:macros.html.twig' as macros %}

{% set translationDomain = "report-balance" %}
{% trans_default_domain translationDomain %}

{% if report.totalsOffset < 0 %}
    {% set moreless = "less" %}
{% else %}
    {% set moreless = "more" %}
{% endif %}

{% set transOptions = {
'%client%': report.client.firstname | e,
'%moreless%': moreless,
'%pathToAccounts%': path('bank_accounts', {'reportId': report.id})
} %}

{% set readyToBalance = reportStatus.balanceState['state'] != 'not-started' %}
{% set showBalanceCalculations = reportStatus.bankAccountsState['state'] != 'not-started' %}

{% block htmlTitle %}{{ 'htmlTitle' | trans }}{% endblock %}
{% block pageTitle %}{{ 'pageTitle' | trans }}{% endblock %}

{% block breadcrumbs %}{{ macros.breadcrumbs(report) }}{% endblock %}

{% block pageContent %}
    {% if not readyToBalance %}
        <div class="alert-info panel panel-border-narrow" id="alert-not-started">
            <span class="icon icon-information"></span>
            <div class="alert-message">
                <p>
                     {% if report.hasSection('paDeputyExpenses') %}
                        {{ 'alerts.notStartedPA' | trans(transOptions) }}</p>
                     {% else %}
                        {{ 'alerts.notStarted' | trans(transOptions) }}</p>
                     {% endif %}
            </div>
        </div>
    {% else %}
        {% if report.isTotalsMatch %}
            <div class="alert-success panel panel-border-narrow" id="alert-balanced">
                <span class="icon icon-tick"></span>
{'fraction_non_alphanumeric': 0.17818831942789035, 'fraction_numerical': 0.0017878426698450535, 'mean_word_length': 2.788939051918736, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '373450', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1000, 'n_words': 194}