From 8fa4841c53fce881a2a221b2352faad362bee589 Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 3 Apr 2025 12:14:16 +0530 Subject: [PATCH] fix: BrandingConfig, Move: js directory - Fix template rendering without BrandingConfig in some pages - Moved JS file to static/js/ subdirectory --- routes/upload.py | 4 ++-- static/{ => js}/edited_csv.js | 0 templates/csv_preview.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename static/{ => js}/edited_csv.js (100%) diff --git a/routes/upload.py b/routes/upload.py index dd9416f..59ef4af 100644 --- a/routes/upload.py +++ b/routes/upload.py @@ -95,7 +95,7 @@ def import_from_csv(): ) # Render the upload page for GET requests - return render_template('upload.html', mode="import") + return render_template('upload.html', mode="import", brandingconfig=BrandingConfig) @upload_bp.route('/edit_using_csv/', methods=['GET', 'POST']) @login_required @@ -136,4 +136,4 @@ def edit_using_csv(): ) # Render the upload page for GET requests - return render_template('upload.html', mode="edit") \ No newline at end of file + return render_template('upload.html', mode="edit", brandingconfig=BrandingConfig) \ No newline at end of file diff --git a/static/edited_csv.js b/static/js/edited_csv.js similarity index 100% rename from static/edited_csv.js rename to static/js/edited_csv.js diff --git a/templates/csv_preview.html b/templates/csv_preview.html index 1e9ec0e..b39de81 100644 --- a/templates/csv_preview.html +++ b/templates/csv_preview.html @@ -5,7 +5,7 @@ CSV Preview {% include 'favicon.html' %} - + {% include 'header.html' %}