#73 hide annotation links when disabled

This commit is contained in:
Alok Saldanha
2024-03-02 11:50:09 -05:00
parent 1e02e0abb8
commit 0000a60eb0

View File

@@ -10,12 +10,15 @@
import html
import urllib.parse
from cellxgene_gateway import env, flask_util
from cellxgene_gateway import flask_util
from cellxgene_gateway.cache_key import CacheKey
from cellxgene_gateway.dir_util import annotations_suffix, make_annotations, make_h5ad
from cellxgene_gateway.env import enable_annotations
def render_annotations(item, item_source):
if not enable_annotations:
return ""
url = flask_util.view_url(
item_source.get_annotations_subpath(item), item_source.name
)