Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
c092b4df
Commit
c092b4df
authored
Aug 18, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1641 from javins/login-title
Refactor login template to extend base.
parents
3b899c9d
b4c7717c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
docs/topics/browsable-api.md
+1
-0
rest_framework/templates/rest_framework/base.html
+2
-0
rest_framework/templates/rest_framework/login_base.html
+3
-12
No files found.
docs/topics/browsable-api.md
View file @
c092b4df
...
@@ -69,6 +69,7 @@ For more specific CSS tweaks than simply overriding the default bootstrap theme
...
@@ -69,6 +69,7 @@ For more specific CSS tweaks than simply overriding the default bootstrap theme
All of the blocks available in the browsable API base template that can be used in your
`api.html`
.
All of the blocks available in the browsable API base template that can be used in your
`api.html`
.
*
`body`
- The entire html
`<body>`
.
*
`bodyclass`
- Class attribute for the
`<body>`
tag, empty by default.
*
`bodyclass`
- Class attribute for the
`<body>`
tag, empty by default.
*
`bootstrap_theme`
- CSS for the Bootstrap theme.
*
`bootstrap_theme`
- CSS for the Bootstrap theme.
*
`bootstrap_navbar_variant`
- CSS class for the navbar.
*
`bootstrap_navbar_variant`
- CSS class for the navbar.
...
...
rest_framework/templates/rest_framework/base.html
View file @
c092b4df
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
{% endblock %}
{% endblock %}
</head>
</head>
{% block body %}
<body
class=
"{% block bodyclass %}{% endblock %} container"
>
<body
class=
"{% block bodyclass %}{% endblock %} container"
>
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
...
@@ -230,4 +231,5 @@
...
@@ -230,4 +231,5 @@
<script
src=
"{% static "
rest_framework
/
js
/
default
.
js
"
%}"
></script>
<script
src=
"{% static "
rest_framework
/
js
/
default
.
js
"
%}"
></script>
{% endblock %}
{% endblock %}
</body>
</body>
{% endblock %}
</html>
</html>
rest_framework/templates/rest_framework/login_base.html
View file @
c092b4df
{% extends "rest_framework/base.html" %}
{% load url from future %}
{% load url from future %}
{% load rest_framework %}
{% load rest_framework %}
<html>
<head>
{% block style %}
{% block bootstrap_theme %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap
.
min
.
css
"
%}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
bootstrap-tweaks
.
css
"
%}"
/>
{% endblock %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
rest_framework
/
css
/
default
.
css
"
%}"
/>
{% endblock %}
</head>
{% block body %}
<body
class=
"container"
>
<body
class=
"container"
>
<div
class=
"container-fluid"
style=
"margin-top: 30px"
>
<div
class=
"container-fluid"
style=
"margin-top: 30px"
>
...
@@ -50,4 +41,4 @@
...
@@ -50,4 +41,4 @@
</div>
<!-- /.row-fluid -->
</div>
<!-- /.row-fluid -->
</div>
<!-- /.container-fluid -->
</div>
<!-- /.container-fluid -->
</body>
</body>
</html>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment