From a26b4cc34e0a4b5c41689dbbfc43184abe166725 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sun, 17 May 2026 11:34:31 +0200 Subject: [PATCH] feat(modals): editor template that extends base_layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lifts the file editor markup out of overlay_detail.html into its own template with server-side filename, content, byte count, and download URL pre-filled. Uses {% extends base_layout %} so the same template renders as either a full page or a layoutless modal fragment. Binary replace UI deferred — pilot scope is editable text files only. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../templates/overlay_file_editor.html | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 l4d2web/l4d2web/templates/overlay_file_editor.html diff --git a/l4d2web/l4d2web/templates/overlay_file_editor.html b/l4d2web/l4d2web/templates/overlay_file_editor.html new file mode 100644 index 0000000..1b00c80 --- /dev/null +++ b/l4d2web/l4d2web/templates/overlay_file_editor.html @@ -0,0 +1,47 @@ +{% extends base_layout %} +{% block title %}Edit {{ rel_path }} · {{ overlay.name }}{% endblock %} +{% block extra_head %}{% include "_editor_assets.html" %}{% endblock %} +{% block content %} + + + + + +{% endblock %}