aboutsummaryrefslogtreecommitdiff
path: root/uploader/genotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-23 14:10:17 -0500
committerFrederick Muriuki Muriithi2024-09-23 14:10:17 -0500
commit3bec3b312a1e235247f1431d4351db5efe7a785d (patch)
treecd93e561d43e35e9389625220012b35094d900d1 /uploader/genotypes
parent27eec3300eddbc17214b3ff3ffbd8bea867db401 (diff)
downloadgn-uploader-3bec3b312a1e235247f1431d4351db5efe7a785d.tar.gz
UI: Indicate currently active menu.
Diffstat (limited to 'uploader/genotypes')
-rw-r--r--uploader/genotypes/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/uploader/genotypes/views.py b/uploader/genotypes/views.py
index 4158491..d69dc28 100644
--- a/uploader/genotypes/views.py
+++ b/uploader/genotypes/views.py
@@ -7,6 +7,7 @@ from flask import (flash,
render_template,
current_app as app)
+from uploader.ui import make_template_renderer
from uploader.authorisation import require_login
from uploader.db_utils import database_connection
from uploader.species.models import all_species, species_by_id
@@ -20,6 +21,7 @@ from .models import (genotype_markers,
genocode_by_population)
genotypesbp = Blueprint("genotypes", __name__)
+render_template = make_template_renderer("genotypes")
@genotypesbp.route("populations/genotypes", methods=["GET"])
@require_login