Add block around Bootstrap styles for easy theming.

Instead of overriding the theme in the `extra_style` block, it can be replaced directly. This avoids having to load unnecessary styles.
This commit is contained in:
Alec Perkins 2012-09-08 15:51:08 -04:00
parent 8b749d0300
commit 1755c7a96c

View File

@ -8,7 +8,9 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}djangorestframework/css/bootstrap.min.css'/>
{% block bootstrap_theme %}
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}djangorestframework/css/bootstrap.min.css'/>
{% endblock %}
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}djangorestframework/css/style.css'/>
{% block extrastyle %}{% endblock %}