aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/templates/renderer.html
diff options
context:
space:
mode:
authorTom Christie2011-07-01 17:44:08 +0100
committerTom Christie2011-07-01 17:44:08 +0100
commitf7b7778a79bad4124a6f50bf461f206a6d71fa90 (patch)
tree2bd1b84a90dec5724cda3d89b3a9faf5ca298961 /djangorestframework/templates/renderer.html
parentc3babe751a6bab7c7888f173b7853a65ba2ea35e (diff)
parentf67c0651baf1cea65221b4fb7f4df11a54abed90 (diff)
downloaddjango-rest-framework-f7b7778a79bad4124a6f50bf461f206a6d71fa90.tar.bz2
pull in markos changes, minor tweaks to yaml stuff
Diffstat (limited to 'djangorestframework/templates/renderer.html')
-rw-r--r--djangorestframework/templates/renderer.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html
index 5b32d1ec..3dd5faf3 100644
--- a/djangorestframework/templates/renderer.html
+++ b/djangorestframework/templates/renderer.html
@@ -8,6 +8,8 @@
#site-name a {color: #F4F379 !important;}
.errorlist {display: inline !important}
.errorlist li {display: inline !important; background: white !important; color: black !important; border: 0 !important;}
+ /* Custom styles */
+ .version{font-size:8px;}
</style>
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/base.css'/>
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/forms.css'/>
@@ -18,7 +20,7 @@
<div id="header">
<div id="branding">
- <h1 id="site-name"><a href='http://django-rest-framework.org'>Django REST framework</a> <small>{{ version }}</small></h1>
+ <h1 id="site-name"><a href='http://django-rest-framework.org'>Django REST framework</a> <span class="version"> v {{ version }}</span></h1>
</div>
<div id="user-tools">
{% if user.is_active %}Welcome, {{ user }}.{% if logout_url %} <a href='{{ logout_url }}'>Log out</a>{% endif %}{% else %}Anonymous {% if login_url %}<a href='{{ login_url }}'>Log in</a>{% endif %}{% endif %}
@@ -58,8 +60,8 @@
</form>
{% endif %}
- {# Only display the POST/PUT/DELETE forms if method tunneling via POST forms is enabled. #}
- {% if METHOD_PARAM %}
+ {# Only display the POST/PUT/DELETE forms if method tunneling via POST forms is enabled and the user has permissions on this view. #}
+ {% if METHOD_PARAM and response.status != 403 %}
{% if 'POST' in view.allowed_methods %}
<form action="{{ request.get_full_path }}" method="post" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %}>