<%! #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 %> <%namespace file="/message.mako" import="render_msg" /> <%def name="center_panel()"> ${body()} <%def name="body()"> %if redirect_url: %endif %if context.get('use_panels'):
%else:
%endif %if message: ${render_msg( message, status )} %endif %if not trans.user: ${render_login_form()} %if trans.app.config.enable_openid:
${render_openid_form( redirect, False, openid_providers )} %endif %if trans.app.config.get( 'terms_url', None ) is not None:

Terms and Conditions for use of this service

%endif %endif
<%def name="render_login_form( form_action=None )"> <% if form_action is None: form_action = h.url_for( controller='user', action='login', use_panels=use_panels ) %> %if header: ${header} %endif
Login
<%def name="render_openid_form( redirect, auto_associate, openid_providers )">
OpenID Login
Or, authenticate with your account.