mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-11-25 12:25:20 +03:00
Add in Bootstrap to browsable API base template. Strip out admin-clone styles.
No real markup changes yet, just swapping libraries in & out.
This commit is contained in:
parent
e077b0e519
commit
5043b9f656
841
djangorestframework/static/djangorestframework/css/bootstrap.min.css
vendored
Normal file
841
djangorestframework/static/djangorestframework/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
BIN
djangorestframework/static/djangorestframework/img/glyphicons-halflings.png
Executable file
BIN
djangorestframework/static/djangorestframework/img/glyphicons-halflings.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
7
djangorestframework/static/djangorestframework/js/bootstrap.min.js
vendored
Executable file
7
djangorestframework/static/djangorestframework/js/bootstrap.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
2
djangorestframework/static/djangorestframework/js/jquery-1.8.1-min.js
vendored
Normal file
2
djangorestframework/static/djangorestframework/js/jquery-1.8.1-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -5,14 +5,21 @@
|
|||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}djangorestframework/css/style.css'/>
|
||||
{% block extrastyle %}{% endblock %}
|
||||
<title>{% block title %}Django REST framework - {{ name }}{% endblock %}</title>
|
||||
{% block extrahead %}{% endblock %}
|
||||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
</head>
|
||||
<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'/>
|
||||
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}djangorestframework/css/style.css'/>
|
||||
{% block extrastyle %}{% endblock %}
|
||||
|
||||
<title>{% block title %}Django REST framework - {{ name }}{% endblock %}</title>
|
||||
|
||||
{% block extrahead %}{% endblock %}
|
||||
|
||||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
|
||||
|
||||
</head>
|
||||
|
||||
<body class="{% block bodyclass %}{% endblock %}">
|
||||
<div id="container">
|
||||
|
||||
|
|
@ -148,6 +155,8 @@
|
|||
<!-- END Content -->
|
||||
|
||||
{% block footer %}<div id="footer"></div>{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<script src="{% get_static_prefix %}djangorestframework/js/jquery-1.8.1-min.js"></script>
|
||||
<script src="{% get_static_prefix %}djangorestframework/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user