{% extends "base.html" %} {% block title %}{{ file.document_title or file.original_filename or 'Document' }} - DocuElevate{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{% if error %}
Error: {{ error }}
{% elif file %} Back to Files
{% if gpt_metadata and gpt_metadata.filename %} {{ gpt_metadata.filename | replace('.pdf','') | replace('_',' ') }} {% elif file.document_title %} {{ file.document_title }} {% else %} {{ file.original_filename or '(untitled)' }} {% endif %}
{{ file.original_filename }}
{% if file.is_duplicate %} Duplicate {% elif step_summary %} {% set main_completed = step_summary.main.success + step_summary.main.skipped %} {% if step_summary.main.failure > 0 or step_summary.uploads.failure > 0 %} Failed {% elif step_summary.main["in_progress"] > 0 or step_summary.uploads["in_progress"] > 0 %} Processing {% elif step_summary.total_main_steps > 0 and main_completed == step_summary.total_main_steps and step_summary.main.failure == 0 %} Completed {% else %} Pending {% endif %} {% endif %}
File Information
File ID{{ file.id }}
Filename{{ file.original_filename }}
Size{{ (file.file_size / 1024) | round(1) }} KB
MIME Type{{ file.mime_type or 'unknown' }}
Created{{ file.created_at.strftime('%Y-%m-%d %H:%M') if file.created_at else 'N/A' }}
{% if file.detected_language %}
Language{{ file.detected_language }}
{% endif %} {% if pipeline_info %}
Pipeline{{ pipeline_info.name }}
{% endif %} {% if file.document_title %}
Document Title{{ file.document_title }}
{% endif %}
Quick Actions
{% if processed_file_exists %} Download Processed {% endif %} {% if original_file_exists %} Download Original {% endif %} View Detail
{% else %}
Document not found.
{% endif %}
{% endblock %}