Browse Source

made exceptions templates independent from layout.jinja2

this resolves a case, where the exception view tries to access the unbound request.user object
php2python
Holger Frey 7 years ago
parent
commit
7a757a0ef7
  1. 53
      ordr2/templates/errors/exception.jinja2

53
ordr2/templates/errors/exception.jinja2

@ -1,8 +1,36 @@ @@ -1,8 +1,36 @@
{% extends "ordr2:templates/layout.jinja2" %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{% block subtitle %} Whoops! {% endblock subtitle %}
<title>Ordr | Whoops!</title>
<link href="{{request.static_url('ordr2:static/img/favicon.ico')}}" type="image/x-icon" rel="shortcut icon">
<link href='http://fonts.googleapis.com/css?family=Anton&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{request.static_url('ordr2:static/css/bootstrap.css')}}" type="text/css" media="screen">
<link rel="stylesheet" href="{{request.static_url('ordr2:static/css/bootstrap-responsive.css')}}" type="text/css" media="screen">
<link rel="stylesheet" href="{{request.static_url('ordr2:static/css/style.css')}}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{request.static_url('deform:static/css/form.css')}}" type="text/css" media="screen" />
<!--[if !IE 7]>
<style type="text/css">
#wrap {display:table;height:100%}
</style>
<![endif]-->
<script src="{{request.static_url('deform:static/scripts/jquery-2.0.3.min.js')}}"></script>
<script src="{{request.static_url('deform:static/scripts/deform.js')}}"></script>
<script src="{{request.static_url('deform:static/scripts/jquery.maskMoney-1.4.1.js')}}"></script>
</head>
<body class="{{ ''.join(request.traversed)}} {{request.view_name}}">
<header class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a href="{{request.resource_url(request.root)}}" class="brand">ordr</a>
</div>
</div>
</header>
{% block content %}
<div class="content">
<div class="container">
<div class="row">
@ -17,4 +45,21 @@ @@ -17,4 +45,21 @@
</div>
</div>
</div>
{% endblock content %}
<footer>
<div class="copy">
<a class="icon-dbs" title="This software was orignially written by Sebastian Sebald." target="_blank" href="http://distractedbysquirrels.com/"></a>
</div>
</footer>
<!--<script src="{{request.static_url('ordr2:static/js/bootstrap-transition.js')}}"></script>-->
<script src="{{request.static_url('ordr2:static/js/bootstrap-dropdown.js')}}"></script>
<script src="{{request.static_url('ordr2:static/js/bootstrap-modal.js')}}"></script>
<script src="{{request.static_url('ordr2:static/js/bootstrap-alert.js')}}"></script>
<script src="{{request.static_url('ordr2:static/js/bootstrap-tooltip.js')}}"></script>
<script src="{{request.static_url('ordr2:static/js/bootstrap-typeahead.js')}}"></script>
<script src="{{request.static_url('ordr2:static/js/bootstrap-collapse.js')}}"></script>
<script src="{{request.static_url('ordr2:static/js/functions.js')}}"></script>
</body>
</html>