Fix error views to use base REST framework template instead of admin, since admin is disabled.

This commit is contained in:
Chris Church
2013-11-19 22:58:46 -05:00
parent ebd6973f6b
commit 52c0a93293
10 changed files with 73 additions and 83 deletions

28
awx/templates/error.html Normal file
View File

@@ -0,0 +1,28 @@
{% extends "rest_framework/api.html" %}
{% load i18n %}
{% block style %}
{{ block.super }}
<style type="text/css">
ul.breadcrumb {
visibility: hidden;
margin-top: 10px !important;
}
pre.err {
margin-bottom: 2em;
}
div.request-info, div.response-info {
display: none;
}
</style>
{% endblock %}
{% block branding_title %}{% endblock %}
{% block breadcrumbs %}
<ul class="breadcrumb">
<li>
<a href="{{ request.get_full_path }}" class="active">{{ name }}</a>
</li>
</ul>
{% endblock %}