{% from 'components/page-heading.html' import page_heading %} {% from 'components/artifact-type.html' import artifact_type %} {% from 'components/pagination.html' import pagination %}
{% if not processing_source and not processing_run %} {% include 'components/observation-header.html' %} {% if processing_kind == 'sources' and automatic_status is defined and automatic_status %}{% include 'components/automatic-status.html' %}{% endif %} {% if processing_kind == 'sources' %}{% if processing_show_topic_status %}{% include 'components/processing-topic-status.html' %}{% endif %} {% else %}{% include 'components/processing-filters.html' %}{% endif %} {% endif %} {% if errors.get('processing') %}{{ read_error(errors.processing, t.processing) }}{% endif %} {% if processing_source %} {% set source = processing_source %}
← {{ t.processing_sources }}

{{ t.source_label }} #{{ source.position }}

{{ t.source_original }}

{{ source.text }}

{% if source.saved_at %}

{{ t.processing_source_saved_time }} {{ source.saved_at|display_time }}

{% endif %}
{% if request.query_params.get('artifact_family') %}{{ t.processing_all_types }}{% endif %} {% for family, refs in (source_artifacts or [])|groupby('family') %}

{{ artifact_type(family) }}

{% for ref in refs %} {% set preview = processing_memory_previews.get(ref.family ~ '/' ~ ref.artifact_id ~ '@' ~ ref.revision) %}
{% if preview and preview.error %}{{ read_error(preview.error, artifact_type(family)) }} {% elif preview %} {% if preview.title %}

{{ preview.title }}

{% endif %} {% if preview.description %}

{{ preview.description }}

{% endif %} {% if preview.text and preview.text != preview.title %}

{{ preview.text }}

{% endif %} {% endif %} {% set destination = artifact_destination(ref) %} {% if destination %}{{ t.home_record_details }} →{% endif %}
{{ t.revision }} {{ ref.revision }} · {{ ref.artifact_id }}
{% endfor %}
{% endfor %} {% if processing_artifacts_pager %}{{ pagination(processing_artifacts_pager, t) }}{% endif %}
{% elif processing_run %} {% include 'components/dream-run-detail.html' %} {% else %} {% if processing_items %} {% if processing_kind == 'sources' %}{% include 'components/processing-sources-table.html' %} {% else %}{% include 'components/processing-runs-table.html' %}{% endif %} {% elif not errors.get('processing') %}

{{ t.processing_sources_empty if processing_kind == 'sources' else t.processing_runs_filtered_empty if processing_status else t.processing_runs_empty }}

{% endif %} {% if processing_pager %}{% endif %} {% endif %}