aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2024-06-23 05:22:03 -0500
committerPjotr Prins2024-06-23 05:22:03 -0500
commit5b6f0991a24836a9d1b0eec90c0bc11a331c3b2a (patch)
tree5a6f2e89d70b3764bbb7440b4d05117c0c2b87e0
parent97af162af765354ac12f8013a8b31136bf3f5487 (diff)
downloadgenecup-5b6f0991a24836a9d1b0eec90c0bc11a331c3b2a.tar.gz
Disable footer for long pages
-rwxr-xr-xserver.py8
-rw-r--r--templates/layout.html2
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="<ul><li> <font color=\"#E74C3C\">Click on the abstract count to read sentences linking the keyword and the gene</font> <li> Click on a keyword to see the terms included in the search. <li>View the results in <a href='\\cytoscape/?rnd={}&genequery={}'\ ><b> a graph.</b></a> </ul> Links will be preserved when the table is copy-n-pasted into a spreadsheet.".format(rnd_url,genes_url)
- return render_template('tableview.html', genes_session_tmp = genes_session_tmp, nodata_temp=nodata_temp, num_gene=num_gene, jedges=jedges, jnodes=jnodes,gene_name=gene_name, message3=message3, rnd_url=rnd_url, genes_url=genes_url,version=version())
+ return render_template('tableview.html', no_footer=True, genes_session_tmp = genes_session_tmp, nodata_temp=nodata_temp, num_gene=num_gene, jedges=jedges, jnodes=jnodes,gene_name=gene_name, message3=message3, rnd_url=rnd_url, genes_url=genes_url,version=version())
# Table for the zero abstract counts
@@ -1360,7 +1360,7 @@ def sentences():
elif(out_neg != "" and out_pos == ""):
out = out1 +out2+stress_cellular+out_neg
K.clear_session()
- return render_template('sentences.html', sentences="<ol>"+out+"</ol><p>",version=version())
+ return render_template('sentences.html', no_footer=True, sentences="<ol>"+out+"</ol><p>",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 %}
</div>
+{% if not no_footer %}
<footer class="footer bg-dark footer-dark">
<div class="container">
<div class="row">
@@ -108,6 +109,7 @@
</div>
</div>
</footer>
+{% endif %}
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>