mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix for incorrect template inheritance causing the tool shed base_panels to be displayed in the galaxy app when logging in after logout.
This commit is contained in:
+10
-17
@@ -1,20 +1,13 @@
|
||||
%if trans.webapp.name == 'galaxy':
|
||||
<%!
|
||||
def inherit(context):
|
||||
if context.get('use_panels'):
|
||||
return '/webapps/galaxy/base_panels.mako'
|
||||
else:
|
||||
return '/base.mako'
|
||||
%>
|
||||
%elif trans.webapp.name == 'tool_shed':
|
||||
<%!
|
||||
def inherit(context):
|
||||
if context.get('use_panels'):
|
||||
return '/webapps/tool_shed/base_panels.mako'
|
||||
else:
|
||||
return '/base.mako'
|
||||
%>
|
||||
%endif
|
||||
<%!
|
||||
#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':
|
||||
return '/webapps/tool_shed/base_panels.mako'
|
||||
else:
|
||||
return '/base.mako'
|
||||
%>
|
||||
|
||||
<%inherit file="${inherit(context)}"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user