{% set topic = processing_topic_status|default(none) %} {% if (topic and topic.state == 'blocked') or errors.get('processing_topic_status') %}

{{ t.home_issues_title }}

{% if topic and topic.state == 'blocked' %}{% set block = topic.block %}
{{ t.topic_memory }}{% if block %} · {{ t.home_issue_topic_attempt_limit if block.error_code == 'window_attempt_limit' else t.home_issue_topic_budget_limit if block.error_code == 'window_provider_budget_exceeded' else t.home_issue_topic_recorded_error }}{% set last = block.last_error_code|default(none) %}{% if last %} · {{ t.home_issue_latest_error }} {{ last }}{% endif %}{% else %} · {{ t.home_issue_reason_unknown }}{% endif %}
{{ t.home_record_details }} →
{% elif errors.get('processing_topic_status') %}{{ read_error(errors.processing_topic_status,t.topic_memory) }}{% endif %}
{% endif %}