From 6d913f9066af4c4e8d63be14a7bd6fdcd7bf37c0 Mon Sep 17 00:00:00 2001 From: sepro Date: Tue, 19 Sep 2017 13:58:51 +0200 Subject: [PATCH] pragmatic fix for popup on specificity results --- planet/controllers/help.py | 4 ++++ planet/templates/search_specific_profiles.html | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/planet/controllers/help.py b/planet/controllers/help.py index 15edc4a..8b93977 100644 --- a/planet/controllers/help.py +++ b/planet/controllers/help.py @@ -1,5 +1,7 @@ from flask import Blueprint, render_template, abort +from planet import cache + # Dict containing all keywords and the template with the information __TOPICS = {"gene_family": "modals/help/gene_family.html", "interpro_domain": "modals/help/interpro_domain.html", @@ -23,6 +25,7 @@ @help.route('/') +@cache.cached() def help_topic(topic): """ Generic function to get help modals. @@ -37,6 +40,7 @@ def help_topic(topic): @help.route('/popup/') +@cache.cached() def help_popup(topic): """ Generic function to get help popups diff --git a/planet/templates/search_specific_profiles.html b/planet/templates/search_specific_profiles.html index 8a8bfbc..b213061 100644 --- a/planet/templates/search_specific_profiles.html +++ b/planet/templates/search_specific_profiles.html @@ -77,8 +77,8 @@

{{species.name}} profiles specific for {{condition}}SPM score Entropy score Tau score - Action Info + Action @@ -91,10 +91,10 @@

{{species.name}} profiles specific for {{condition}}{{ r.score|round(2) }} {{ r.entropy|round(2) }} {% if r.tau %}{{ r.tau|round(2) }}{% else %}None{% endif %} - view profile {% if r.profile.low_abundance %}{% endif %} - + view profile + {% endif %} {% endfor %}