From 5b6f0991a24836a9d1b0eec90c0bc11a331c3b2a Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 23 Jun 2024 05:22:03 -0500 Subject: Disable footer for long pages --- server.py | 8 ++++---- templates/layout.html | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index d691dd9..c0e734c 100755 --- a/server.py +++ b/server.py @@ -568,7 +568,7 @@ def ontology(): else: onto_len_dir=0 onto_list='' - return render_template('ontology.html',dict_onto=dict_onto, namecat=name_to_html, onto_len_dir=onto_len_dir, onto_list=onto_list,version=version()) + return render_template('ontology.html',no_footer=True, dict_onto=dict_onto, namecat=name_to_html, onto_len_dir=onto_len_dir, onto_list=onto_list,version=version()) @app.route("/ontoarchive") @@ -1040,7 +1040,7 @@ def tableview(): num_gene = gene_name.count(',')+1 message3="
",version=version()) + return render_template('sentences.html', no_footer=True, sentences="
",version=version()) # Show the cytoscape graph for one gene from the top gene list @@ -1508,7 +1508,7 @@ def showGeneTopGene (): # Generate a page that lists all the top 150 addiction genes with links to cytoscape graph. @app.route("/allTopGenes") def top150genes(): - return render_template("topAddictionGene.html",version=version()) + return render_template("topAddictionGene.html",no_footer=True,version=version()) if __name__ == '__main__': diff --git a/templates/layout.html b/templates/layout.html index 951c950..3160de5 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -94,6 +94,7 @@ {% block content %}{% endblock %} +{% if not no_footer %} +{% endif %} -- cgit v1.2.3