Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (116 sloc) 4.7 KB
<%namespace name="pym" file="pysite:templates/_lib/pym.mako"/>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title><%block name="meta_title">PySite</%block></title>
<meta name="description" content="<%block name="meta_descr">This is PySite on Pyramid</%block>">
<meta name="keywords" content="<%block name="meta_keywords">Python,PySite,Hosting,Web Site,Pyramid,Web Framework</%block>">
<meta name="author" content="<%block name="meta_author">Dirk Makowski (http://parenchym.com)</%block>">
<%block name="styles">
<link rel="stylesheet" href="${request.static_url('pysite:static/css/normalize.css')}">
<link rel="stylesheet" href="${request.static_url('pysite:static/css/base1.css')}">
<link rel="stylesheet" href="${request.static_url('pysite:static/app/libs/jquery/ui/themes/humanity/jquery-ui.css')}">
<link rel="stylesheet" href="${request.static_url('pysite:static/app/libs/jquery/ui/timepicker/timepicker.css')}">
<link rel="stylesheet" href="${request.static_url('pysite:static/app/libs/jquery/ui/pnotify/jquery.pnotify.default.css')}">
<link rel="stylesheet" href="${request.static_url('pysite:static/css/styles.css')}">
<link rel="stylesheet" href="${request.static_url('pysite:static/css/base2.css')}">
</%block>
<script>
<%block name="require_config">
var require = {
baseUrl: '${request.static_url('pysite:static/app')}'
// Dependencies are loaded before any "require()"d libraries.
// It seems we must use absolute URLs here.
, deps: [
'${request.static_url('pysite:static/app/libs/plugins.js')}'
]
, paths: {
'jquery': 'libs/jquery/jquery'
, 'ui': 'libs/jquery/ui'
// Define a path for requirejs, as it makes loading its plugins more comfortable
, 'requirejs': 'libs/requirejs'
}
, shim: {
'ui/jquery-ui': ['jquery']
, 'libs/jstorage': ['jquery']
, 'ui/timepicker/timepicker': ['ui/jquery-ui']
, 'ui/pnotify/jquery.pnotify': ['ui/jquery-ui']
}
, waitSeconds: 15
};
</%block>
</script>
<%block name="scripts">
<script src="${request.static_url('pysite:static/app/libs/requirejs/require.js')}"></script>
<script>
require(['pym'], function(PYM) {
PYM.init({
gui_token: '${request.session.get_csrf_token().decode('utf-8')}'
});
});
</script>
</%block>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
<div id="pageContainer"><!-- BEGIN #pageContainer -->
<div id="pageHeaderWrapper"><!-- BEGIN #pageHeaderContainer -->
<%block name="pageHeader">
<header class="clearfix">
<table><tbody>
<tr>
<td><h1>${self.meta_title()}</h1></td>
<td id="userInfo">
<div id="userLogInOut">
% if request.user.is_auth():
<a href="${request.resource_url(request.context, '@@logout')}">Logout</a>
% else:
<a href="${request.resource_url(request.context, '@@login')}">Login</a>
% endif
</div>
<div id="userDisplayName">${request.user.display_name}</div>
</td>
<td id="logo" rowspan="2">
% if logo_url:
<img class="img" src="${logo_url}" border="0" alt="${logo_alt}" />
% else:
<div class="img"></div>
% endif
</td>
</tr>
<tr class="row2">
<td id="breadcrumbs" colspan="2"><div id="breadcrumbs-inner">
${pym.breadcrumbs()}
</div></td>
</tr>
</tbody></table>
</header>
</%block>
</div><!-- END #pageHeaderContainer -->
<div id="content"><!-- BEGIN #content -->
${next.body()}
</div><!-- END #content -->
<div id="pageFooterWrapper"><!-- BEGIN #pageFooterContainer -->
<%block name="pageFooter">
<footer>
&copy;2012 by <a href="http://parenchym.com">Dirk Makowski</a>.
All rights reserved.
</footer>
</%block>
</div><!-- END #pageFooterContainer -->
</div><!-- END #pageContainer -->
<script>
require(['requirejs/domReady!', 'jquery', 'pym'], function(doc, $, PYM) {
${pym.growl_flash()}
});
</script>
</body>
</html>