aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/static/rest_framework/css/default.css4
-rw-r--r--rest_framework/templates/rest_framework/base.html10
2 files changed, 8 insertions, 6 deletions
diff --git a/rest_framework/static/rest_framework/css/default.css b/rest_framework/static/rest_framework/css/default.css
index 4d61ac8f..739b9300 100644
--- a/rest_framework/static/rest_framework/css/default.css
+++ b/rest_framework/static/rest_framework/css/default.css
@@ -19,6 +19,10 @@ h2, h3 {
padding-right: 0.25em;
}
+.version {
+ font-size: 70%;
+}
+
.format-option {
font-family: Menlo, Consolas, "Andale Mono", "Lucida Console", monospace;
}
diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html
index d26cb8f4..5ac6ef67 100644
--- a/rest_framework/templates/rest_framework/base.html
+++ b/rest_framework/templates/rest_framework/base.html
@@ -39,7 +39,7 @@
{% if user.is_authenticated %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
- Logged in as {{ user }}
+ {{ user }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
@@ -128,7 +128,6 @@
<div class="well">
<form action="{{ request.get_full_path }}" method="POST" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="form-horizontal">
<fieldset>
- <h2>POST: {{ name }}</h2>
{% csrf_token %}
{{ post_form.non_field_errors }}
{% for field in post_form %}
@@ -153,7 +152,6 @@
<div class="well">
<form action="{{ request.get_full_path }}" method="POST" {% if put_form.is_multipart %}enctype="multipart/form-data"{% endif %} class="form-horizontal">
<fieldset>
- <h2>PUT: {{ name }}</h2>
<input type="hidden" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="PUT" />
{% csrf_token %}
{{ put_form.non_field_errors }}
@@ -191,9 +189,9 @@
</div><!-- ./wrapper -->
{% block footer %}
- <div id="footer">
- <a class="powered-by" href='http://django-rest-framework.org'>Django REST framework</a> <span class="version">{{ version }}</span>
- </div>
+ <!--<div id="footer">
+ <a class="powered-by" href='http://django-rest-framework.org'>Django REST framework</a>
+ </div>-->
{% endblock %}
{% block script %}