<%namespace name="galaxy_client" file="/galaxy_client_app.mako" /> <% self.has_left_panel = hasattr( self, 'left_panel' ) self.has_right_panel = hasattr( self, 'right_panel' ) self.message_box_visible = app.config.message_box_visible self.show_inactivity_warning = False if trans.webapp.name == 'galaxy' and trans.user: self.show_inactivity_warning = ( ( trans.user.active is False ) and ( app.config.user_activation_on ) and ( app.config.inactivity_box_content is not None ) ) self.overlay_visible=False self.active_view=None self.body_class="" self.require_javascript=False %> <%def name="init()"> ## Override ## Default stylesheets <%def name="stylesheets()"> ${h.css( 'base', 'jquery.rating' )} ## Default javascripts <%def name="javascripts()"> ## Send errors to Sntry server if configured %if app.config.sentry_dsn: ${h.js( "libs/tracekit", "libs/raven" )} %endif ${h.js( 'libs/jquery/jquery', 'libs/jquery/jquery.migrate', 'libs/jquery/select2', 'libs/bootstrap', 'libs/underscore', 'libs/backbone/backbone', 'libs/handlebars.runtime', 'galaxy.base', 'libs/require' )} <%def name="javascript_app()"> ## load the Galaxy global js var ${ galaxy_client.load() } ## Default late-load javascripts <%def name="late_javascripts()"> ## Scripts can be loaded later since they progressively add features to ## the panels, but do not change layout ${h.js( 'libs/jquery/jquery.event.hover', 'libs/jquery/jquery.form', 'libs/jquery/jquery.rating', 'galaxy.panels' )} ## Handle AJAX (actually hidden iframe) upload tool ## Masthead <%def name="masthead()"> ## Override <%def name="overlay( title='', content='', visible=False )"> <%def name="title()"> <%def name="content()"> <% if visible: display = "style='display: block;'" overlay_class = "in" else: display = "style='display: none;'" overlay_class = "" %> ## Document ${self.init()} %if app.config.brand: ${self.title()} / ${app.config.brand} %else: ${self.title()} %endif ## For mobile browsers, don't scale up ## Force IE to standards mode, and prefer Google Chrome Frame if the user has already installed it ${self.stylesheets()} ${self.javascripts()} ${self.javascript_app()} <% body_class = self.body_class if self.message_box_visible: body_class += " has-message-box" if self.show_inactivity_warning: body_class += " has-inactivity-box" %> %if self.require_javascript: %endif
## Background displays first
## Layer iframes over backgrounds
${app.config.message_box_content}
%if self.show_inactivity_warning:
${app.config.inactivity_box_content} Resend verification.
%endif ${self.overlay(visible=self.overlay_visible)} %if self.has_left_panel:
${self.left_panel()}
%endif
${self.center_panel()}
%if self.has_right_panel: %endif
## Allow other body level elements ## Scripts can be loaded later since they progressively add features to ## the panels, but do not change layout ${self.late_javascripts()}