Skip to content

Commit

Permalink
Merge pull request #938 from kysrpex/single_cell_subdomain_labels
Browse files Browse the repository at this point in the history
Single cell subdomain: fix labels
  • Loading branch information
kysrpex authored Oct 10, 2023
2 parents 07d7fe6 + 2f416f6 commit 3153728
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 3153728

Please sign in to comment.