{% extends "pmo_base.html" %} {% block title %}Geçmiş — {{ project.name }}{% endblock %} {% block screen %}

{{ t('nav.history') }}

{% if filtre == 'analiz' %}{{ t('analyses.subtitle', n=rows|length)|safe }}{% else %}{{ t('history.subtitle', n=rows|length) }}{% endif %}

{% for f, label in [('', t('history.tab_all', n=counts.all)), ('bekleyen', t('history.tab_pending', n=counts.bekleyen)), ('analiz', t('history.tab_analyses', n=counts.analiz))] %} {{ label }} {% endfor %} {% if karar %} {{ karar|tr_decision }} ✕ {% endif %}
{{ t('list.col_request') }}{{ t('list.col_decisions') }}{{ t('list.col_status') }}{{ t('list.col_pre_analysis') }}{{ t('list.col_date') }}
{% for r in rows %}
{{ r.request }}{% if r.is_analysis %}{{ t('badge.analysis') }}{% endif %}{% if r.escalated %}{{ t('badge.escalation') }}{% endif %}
{{ r.id }}
{% for d in r.decisions %}{{ d|tr_decision }}{% endfor %}
{{ r.status_label }} {% if r.has_pre_analysis %}{{ t('badge.ready') }}{% else %}{% endif %} {{ r.created_at }}
{% else %}
{% if filtre == 'analiz' %}{{ t('list.empty_analyses') }}{% elif filtre == 'bekleyen' %}{{ t('list.empty_approvals') }}{% else %}{{ t('list.empty_history') }}{% endif %} {{ t('list.go_triage') }}
{% endfor %}
{% endblock %}