https://github.com/galaxyproject/galaxy
Tip revision: 0122040fad865487e2377cee35360af49e37d0e8 authored by Nate Coraor on 24 February 2016, 18:23:36 UTC
Update version to 15.03.4
Update version to 15.03.4
Tip revision: 0122040
base.mako
<%namespace name="galaxy_client" file="/galaxy_client_app.mako" />
<% self.js_app = None %>
<% _=n_ %>
<!DOCTYPE HTML>
<html>
<!--base.mako-->
${self.init()}
<head>
<title>${self.title()}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
${self.metas()}
${self.stylesheets()}
${self.javascripts()}
${self.javascript_app()}
</head>
<body class="inbound">
${next.body()}
</body>
</html>
## Default title
<%def name="title()"></%def>
## Default init
<%def name="init()"></%def>
## Default stylesheets
<%def name="stylesheets()">
${h.css('base')}
</%def>
## Default javascripts
<%def name="javascripts()">
## Send errors to Sntry server if configured
%if app.config.sentry_dsn:
${h.js( "libs/tracekit", "libs/raven" )}
<script>
Raven.config('${app.config.sentry_dsn_public}').install();
%if trans.user:
Raven.setUser( { email: "${trans.user.email|h}" } );
%endif
</script>
%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'
)}
<script type="text/javascript">
## global configuration object
var galaxy_config =
{
root: '${h.url_for( "/" )}'
};
// console protection
window.console = window.console || {
log : function(){},
debug : function(){},
info : function(){},
warn : function(){},
error : function(){},
assert : function(){}
};
## configure require
require.config({
baseUrl: "${h.url_for('/static/scripts') }",
shim: {
"libs/underscore": { exports: "_" },
"libs/backbone/backbone": { exports: "Backbone" }
},
urlArgs: 'v=${int(app.server_starttime)}'
});
</script>
%if not form_input_auto_focus is UNDEFINED and form_input_auto_focus:
<script type="text/javascript">
$(document).ready( function() {
// Auto Focus on first item on form
if ( $("*:focus").html() == null ) {
$(":input:not([type=hidden]):visible:enabled:first").focus();
}
});
</script>
%endif
</%def>
<%def name="javascript_app()">
${ galaxy_client.load( app=self.js_app ) }
</%def>
## Additional metas can be defined by templates inheriting from this one.
<%def name="metas()"></%def>