%! #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 ): return '/webapps/tool_shed/base_panels.mako' else: return '/base.mako' %> <%inherit file="${inherit(context)}"/> <%def name="init()"> <% self.has_left_panel=False self.has_right_panel=False self.active_view=active_view self.message_box_visible=False %> %def> <%namespace file="/message.mako" import="render_msg" /> <%def name="center_panel()"> ${body()} %def> <%def name="body()"> %if redirect_url: %endif %if context.get('use_panels'):