Decouple login/logout toolshed from Galaxy makos

This commit is contained in:
guerler
2022-10-16 00:15:38 -04:00
parent 49ecb1bc26
commit 56563fd781
2 changed files with 2 additions and 6 deletions
@@ -1,9 +1,7 @@
<%!
#This is a hack, we should restructure templates to avoid this.
def inherit(context):
if context.get('trans').webapp.name == 'galaxy' and context.get( 'use_panels', True ):
return '/webapps/galaxy/base_panels.mako'
elif context.get('trans').webapp.name == 'tool_shed' and context.get( 'use_panels', True ):
if context.get('trans').webapp.name == 'tool_shed' and context.get( 'use_panels', True ):
return '/webapps/tool_shed/base_panels.mako'
else:
return '/base.mako'
@@ -1,9 +1,7 @@
<%!
#This is a hack, we should restructure templates to avoid this.
def inherit(context):
if context.get('trans').webapp.name == 'galaxy':
return '/webapps/galaxy/base_panels.mako'
elif context.get('trans').webapp.name == 'tool_shed':
if context.get('trans').webapp.name == 'tool_shed':
return '/webapps/tool_shed/base_panels.mako'
else:
return '/base.mako'