error pages should not show navigation

This commit is contained in:
dandds 2018-08-06 14:14:27 -04:00
parent b89dd07fef
commit b5559212f9
2 changed files with 39 additions and 1 deletions

38
templates/error_base.html Normal file
View File

@ -0,0 +1,38 @@
{# TODO: set this context elsewhere #}
{# set context='workspace' #}
{% set context=g.navigationContext %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}JEDI{% endblock %}</title>
{% assets "css" %}
<link rel="stylesheet" href="{{ ASSET_URL }}" type="text/css">
{% endassets %}
<link rel="icon" type="image/x-icon" href="/static/img/favicon.ico">
</head>
<body class="{% if g.modalOpen %} modalOpen{% endif %}">
{% block template_vars %}{% endblock %}
<div class='global-layout'>
<div class='global-panel-container'>
{% block sidenav %}{% endblock %}
{% block content %}
these are not the droids you are looking for
{% endblock %}
</div>
</div>
{% include 'footer.html' %}
{% block modal %}{% endblock %}
{% assets "js_all" %}
<script src="{{ ASSET_URL }}"></script>
{% endassets %}
</body>
</html>

View File

@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "error_base.html" %}
{% block content %}