From 6266819670372c534d11ffc325c8c27893bfc09d Mon Sep 17 00:00:00 2001 From: JB Date: Sat, 11 Oct 2025 12:04:33 -0700 Subject: [PATCH] refactor: Update upload modal inclusion to use context blocks for better readability --- abogen/web/templates/index.html | 4 +++- abogen/web/templates/prepare_chapters.html | 4 +++- abogen/web/templates/prepare_speakers.html | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/abogen/web/templates/index.html b/abogen/web/templates/index.html index 93c1008..d8595d8 100644 --- a/abogen/web/templates/index.html +++ b/abogen/web/templates/index.html @@ -17,7 +17,9 @@ -{% include "partials/upload_modal.html" with pending=None, readonly=False, active_step='settings' %} +{% with pending=None, readonly=False, active_step='settings' %} + {% include "partials/upload_modal.html" %} +{% endwith %} {% include "partials/reader_modal.html" %} diff --git a/abogen/web/templates/prepare_chapters.html b/abogen/web/templates/prepare_chapters.html index 0ae0737..fbbd2d0 100644 --- a/abogen/web/templates/prepare_chapters.html +++ b/abogen/web/templates/prepare_chapters.html @@ -171,7 +171,9 @@
-{% include "partials/upload_modal.html" with pending=pending, readonly=True, active_step='chapters' %} +{% with pending=pending, readonly=True, active_step='chapters' %} + {% include "partials/upload_modal.html" %} +{% endwith %} {% endblock %} {% block scripts %} diff --git a/abogen/web/templates/prepare_speakers.html b/abogen/web/templates/prepare_speakers.html index 10d7fb0..c248681 100644 --- a/abogen/web/templates/prepare_speakers.html +++ b/abogen/web/templates/prepare_speakers.html @@ -411,7 +411,9 @@ -{% include "partials/upload_modal.html" with pending=pending, readonly=True, active_step='speakers' %} +{% with pending=pending, readonly=True, active_step='speakers' %} + {% include "partials/upload_modal.html" %} +{% endwith %} {% endblock %} {% block scripts %}