{% extends "base.html" %} {% block title %}{{ t('analysis') }}{% if selected %} · {{ selected.machine_number }}{% endif %} · {{ view_display }}{% endblock %} {% block content %}

{{ t('monthly_loading') }}

{{ t('analysis') }}{% if active_company %} · {{ active_company.name }}{% endif %}{% if selected %} · {{ selected.machine_number }}{% endif %}

{% if selected %} {{ t('open_log') }} {% endif %}
{% if not machines %}

{{ t('need_machine') }} {{ t('add_machine') }}

{% else %}
{% if not is_this_month %} {{ t('this_month') }} {% endif %} {{ t('date') }} — {{ view_display }}
{% include "_machine_switch.html" %}

{{ t('all_machines_chart') }} · {{ view_display }}

{{ t('monthly_loading') }}

{% if combined_has_data %}
{% else %}

{{ t('no_data') }}

{% endif %}
{% if selected %}

{{ selected.machine_number }}

{{ selected.company_name }}

{{ selected.location }} {{ selected.notes }}

{% if health.status == 'ok' %}{{ t('healthy') }} {% elif health.status == 'watch' %}{{ t('needs_check') }} {% elif health.status == 'alert' %}{{ t('critical') }} {% else %}{{ t('no_readings') }}{% endif %}

{{ t('findings') }}

{% if health.issues %} {% else %}

{{ t('no_alerts') }}

{% endif %}

{{ t('this_machine_chart') }} · {{ selected.machine_number }} · {{ view_display }}

{% include "_machine_charts.html" %}
{% endif %} {% endif %} {% endblock %} {% block scripts %} {% if machines %} {% include "_chart_scripts.html" %} {% endif %} {% endblock %}