mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Decouple login/logout toolshed from Galaxy makos
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user