Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single cell subdomain: fix labels #938

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions templates/galaxy/config/global_host_filters.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def per_host_tool_labels( context, label ):
host = context.trans.request.host
subdomain = host.replace('.usegalaxy.eu', '')

# show single cell labels tools only in that subdomain
if label.id.startswith("single-cell-label") and subdomain != "singlecell":
return False
# show single cell labels only in that subdomain
if label.id.startswith("single-cell-label"):
return subdomain == "singlecell"

# hide genomics label in the single cell subdomain
if label.id == "genomics_label" and subdomain == "singlecell":
Expand Down Expand Up @@ -154,9 +154,9 @@ def per_host_tool_sections( context, section ):
else:
return False

# show single cell interactive tools only in that subdomain
if section.id.startswith("single-cell-section") and subdomain != "singlecell":
return False
# show single cell tools only in that subdomain
if section.id.startswith("single-cell-section"):
return subdomain == "singlecell"

# Core tools used by all virtual hosts.
# HiCtools mode: published in NAR 2018
Expand Down
Loading