{% extends "base.html" %} {% block title %}Overlay {{ overlay.name }} | left4me{% endblock %} {% block content %} {% set can_edit = g.user.admin or (overlay.type in ['workshop', 'script', 'files'] and overlay.user_id == g.user.id) %} {% set is_files_overlay = overlay.type == 'files' %} {% set files_can_edit = is_files_overlay and can_edit %}

Overlay: {{ overlay.name }}

Type
{{ overlay.type }}
Scope
{% if overlay.user_id %}private{% else %}system{% endif %}
{% if overlay.type == 'script' %}

Script

{% if can_edit %}

Runs sandboxed against the overlay directory mounted at /overlay.

{% if not latest_build_is_running %}
{% endif %}
{% else %}
{{ overlay.script or "" }}
{% endif %} {% include "_overlay_build_status.html" %} {% endif %} {% if overlay.type == 'workshop' %}

Workshop items

{% if can_edit and not latest_build_is_running %}
Input mode
{% endif %}
{% include "_overlay_item_table.html" with context %}
{% include "_overlay_build_status.html" %} {% endif %}

Files

{% if files_can_edit %}

Drop files or folders onto a folder row to upload. Drag rows inside the tree to move them.

{% else %} {% if not file_tree_root_entries %}

No files yet — build this overlay to populate it.

{% else %} {% set entries = file_tree_root_entries %} {% set truncated = file_tree_truncated %} {% set truncated_count = file_tree_truncated_count %} {% set files_base_url = "/overlays/" ~ overlay.id %} {% set download_supported = True %} {% include "_overlay_file_tree.html" %} {% endif %} {% endif %}

Used by

{% if using_blueprints %} {% else %}

Not used by any blueprint.

{% endif %}
{% if can_edit %} {% endif %} {% if files_can_edit %} {% endif %} {# Only include the ~30 KB of editor assets on pages that actually mount an editor: script-type overlays (bash editor) and files-type overlays that the current user can edit (the files-editor modal). Workshop overlays and read-only pages skip the include entirely. #} {% if overlay.type == 'script' or files_can_edit %} {% include '_editor_assets.html' %} {% endif %} {% endblock %}