{% extends "workspace_base.html" %} {% block workspace_content %}
{{ t('file_view.back') }}

{{ entry.name }}

{{ file_path }}

{% if terminal_editor_supported %}
{% endif %} {% if can_edit %}{{ t('file_view.edit') }}{% endif %} {% if copy_text is not none %}{% endif %} {% if not sensitive_file %}{% endif %} {{ t('common.download') }}
{% if copy_text is not none %}{% endif %}
{{ t('common.size') }}{{ format_size(entry.size) }} {{ t('common.modified') }}{{ format_time_ns(entry.mtime_ns) }} {{ t('common.type') }}{{ content_type }}
{% if sensitive_file %}

{{ t('file_view.sensitive') }}

{% endif %} {% if preview_error %}

{{ preview_error }}

{% endif %} {% if view_kind == 'image' %}
{{ t('file_view.image_alt', name=entry.name) }}
{% elif view_kind == 'pdf' %}
{% elif view_kind == 'json' and json_content is not none %}
{{ t('file_view.json') }}{{ t('file_view.json_copy') }}
{{ json_content }}
{% elif view_kind == 'csv' and csv_header %}
{{ t('file_view.csv') }}{{ t('file_view.csv_copy') }}
{% for cell in csv_header %}{% endfor %} {% for row in csv_rows %}{% for cell in row %}{% endfor %}{% endfor %}
{{ cell }}
{{ cell }}
{% elif preview %}
{% if preview.mode == 'tail' %}{{ t('file_view.tail') }}{% elif preview.mode == 'range' %}{{ t('file_view.range') }}{% else %}{{ t('file_view.head') }}{% endif %} {% if preview.mode == 'range' %} {{ t('file_view.range_offset', offset=format_size(preview.offset)) }} {% elif preview.truncated %} {{ t('file_view.partial', size=format_size(preview.size)) }} {% endif %}
{% if preview.truncated %} {% endif %}
{{ preview.content }}
{% else %}
{% if preview_too_large %} {{ t('file_view.preview_too_large') }}

{{ t('file_view.preview_too_large_copy') }}

{% else %} {{ t('file_view.unsupported') }}

{{ t('file_view.unsupported_copy') }}

{% endif %} {{ t('file_view.original_download') }}
{% endif %}
{% endblock %}