diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html
index e54e38148..a84ccf269 100644
--- a/rest_framework/templates/rest_framework/base.html
+++ b/rest_framework/templates/rest_framework/base.html
@@ -5,14 +5,14 @@
{% block head %}
-
+
{% block meta %}
{% endblock %}
-
+
{% block title %}Django REST framework{% endblock %}
-
+
{% block style %}
{% block bootstrap_theme %}
@@ -21,7 +21,7 @@
{% endblock %}
-
+
{% endblock %}
@@ -44,17 +44,9 @@
{% block userlinks %}
{% if user.is_authenticated %}
- -
-
- {{ user }}
-
-
-
-
+ {% optional_logout request user %}
{% else %}
- - {% optional_login request %}
+ {% optional_login request %}
{% endif %}
{% endblock %}
@@ -85,7 +77,7 @@
{% if display_edit_forms %}
-
+
{% if post_form or raw_data_post_form %}
{% if post_form %}
@@ -190,7 +182,7 @@
{% endif %}
-
+
{% if put_form or raw_data_put_form or raw_data_patch_form %}
{% if put_form %}
@@ -246,7 +238,7 @@
{% endif %}
-
+