From ef5c0de4f309923b844d9fe0dd9ac70b7347a49a Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 23 May 2020 08:42:00 -0500 Subject: Menu and forms --- bh20simplewebuploader/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bh20simplewebuploader/main.py') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index c03cc81..a30d350 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -225,7 +225,7 @@ def send_form(): Send the file upload form/front page. """ - return render_template('form.html', fields=FORM_ITEMS) + return render_template('form.html', fields=FORM_ITEMS, menu='HOME') class FileTooBigError(RuntimeError): """ @@ -420,15 +420,15 @@ def receive_files(): @app.route('/demo') def demo_page(): - return render_template('demo.html') + return render_template('demo.html',menu='DEMO') @app.route('/blog') def blog_page(): - return render_template('blog.html') + return render_template('blog.html',menu='BLOG') @app.route('/about') def about_page(): - return render_template('about.html') + return render_template('about.html',menu='ABOUT') ## Dynamic API functions starting here ## This is quick and dirty for now, just to get something out and demonstrate the queries -- cgit v1.2.3