diff options
| -rw-r--r-- | djangorestframework/static/djangorestframework/css/style.css | 4 | ||||
| -rw-r--r-- | djangorestframework/templates/djangorestframework/base.html | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/djangorestframework/static/djangorestframework/css/style.css b/djangorestframework/static/djangorestframework/css/style.css index 3d6fdbdc..467f65b0 100644 --- a/djangorestframework/static/djangorestframework/css/style.css +++ b/djangorestframework/static/djangorestframework/css/style.css @@ -43,4 +43,8 @@ h2, h3 { right: 0; bottom: 0; left: 0; +} + +.response-info .meta { + border-bottom: 1px solid #ccc; }
\ No newline at end of file diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html index a81c2fb7..0e115948 100644 --- a/djangorestframework/templates/djangorestframework/base.html +++ b/djangorestframework/templates/djangorestframework/base.html @@ -84,9 +84,10 @@ <pre><b>{{ request.method }}</b> {{ request.get_full_path }}</pre> <div> <div class="response-info"> - <pre><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %} + <pre><div class="meta"><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %} {% for key, val in response.items %}<b>{{ key }}:</b> {{ val|urlize_quoted_links }} {% endfor %} +</div> {{ content|urlize_quoted_links }}</pre>{% endautoescape %} </div> |
