mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-09 11:44:28 +03:00
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:
parent
8b749d0300
commit
1755c7a96c
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user