diff options
| author | Alec Perkins | 2012-09-08 15:51:08 -0400 |
|---|---|---|
| committer | Alec Perkins | 2012-09-08 15:51:08 -0400 |
| commit | 1755c7a96c83b682be312e5c57dfb50452f480f4 (patch) | |
| tree | 67940dacea99c275c7f869e53087988e83921707 | |
| parent | 8b749d03003153e3b87bcdf7460f70bf8bcfca95 (diff) | |
| download | django-rest-framework-1755c7a96c83b682be312e5c57dfb50452f480f4.tar.bz2 | |
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.
| -rw-r--r-- | djangorestframework/templates/djangorestframework/base.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/djangorestframework/templates/djangorestframework/base.html b/djangorestframework/templates/djangorestframework/base.html index 5f4007c4..558aaaac 100644 --- a/djangorestframework/templates/djangorestframework/base.html +++ b/djangorestframework/templates/djangorestframework/base.html @@ -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 %} |
