From 0169c9b5255263a4e204d1b80d00a321c0d20cfb Mon Sep 17 00:00:00 2001 From: Per Stark Date: Wed, 30 Apr 2025 15:10:53 +0200 Subject: [PATCH] fix: ingestion modal works on all pages --- .../templates/content/content_list.html | 4 +++- .../index/signed_in/ingress_modal.html | 24 +++++++++++-------- html-router/templates/sidebar.html | 4 ++-- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/html-router/templates/content/content_list.html b/html-router/templates/content/content_list.html index 658473b..80d65da 100644 --- a/html-router/templates/content/content_list.html +++ b/html-router/templates/content/content_list.html @@ -1,7 +1,9 @@
{% for text_content in text_contents %}
+ {% if text_content.url_info %} + {% endif %}

@@ -14,7 +16,7 @@ {% endif %}

- {% if text_content.url %} + {% if text_content.url_info %} {% include "icons/globe_icon.html" %} {% elif text_content.file_info %} {% include "icons/document_icon.html" %} diff --git a/html-router/templates/index/signed_in/ingress_modal.html b/html-router/templates/index/signed_in/ingress_modal.html index a8af476..5b6ae2c 100644 --- a/html-router/templates/index/signed_in/ingress_modal.html +++ b/html-router/templates/index/signed_in/ingress_modal.html @@ -1,15 +1,10 @@ {% extends "modal_base.html" %} - {% block form_attributes %} hx-post="/ingress-form" enctype="multipart/form-data" -hx-target="#active_jobs_section" -hx-swap="outerHTML" {% endblock %} - {% block modal_content %}

Add new content

-
-
-
-
-
{{ error }}
+ {% endblock %} - {% block primary_actions %}
@@ -78,7 +79,6 @@ {% endfor %} {% else %} -
  • No recent chats
  • {% endif %}