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
50efa106
Commit
50efa106
authored
Jun 25, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add version to html
parent
409ee533
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
djangorestframework/renderers.py
+2
-0
djangorestframework/templates/renderer.html
+1
-1
No files found.
djangorestframework/renderers.py
View file @
50efa106
...
...
@@ -17,6 +17,7 @@ from djangorestframework.utils import dict2xml, url_resolves
from
djangorestframework.utils.breadcrumbs
import
get_breadcrumbs
from
djangorestframework.utils.description
import
get_name
,
get_description
from
djangorestframework.utils.mediatypes
import
get_media_type_params
,
add_media_type_param
,
media_type_matches
from
djangorestframework
import
VERSION
from
decimal
import
Decimal
import
re
...
...
@@ -285,6 +286,7 @@ class DocumentingTemplateRenderer(BaseRenderer):
'response'
:
self
.
view
.
response
,
'description'
:
description
,
'name'
:
name
,
'version'
:
VERSION
,
'markeddown'
:
markeddown
,
'breadcrumblist'
:
breadcrumb_list
,
'available_media_types'
:
self
.
view
.
_rendered_media_types
,
...
...
djangorestframework/templates/renderer.html
View file @
50efa106
...
...
@@ -18,7 +18,7 @@
<div
id=
"header"
>
<div
id=
"branding"
>
<h1
id=
"site-name"
><a
href=
'http://django-rest-framework.org'
>
Django REST framework
</a></h1>
<h1
id=
"site-name"
><a
href=
'http://django-rest-framework.org'
>
Django REST framework
</a>
<small>
{{ version }}
</small>
</h1>
</div>
<div
id=
"user-tools"
>
{% if user.is_active %}Welcome, {{ user }}.{% if logout_url %}
<a
href=
'{{ logout_url }}'
>
Log out
</a>
{% endif %}{% else %}Anonymous {% if login_url %}
<a
href=
'{{ login_url }}'
>
Log in
</a>
{% endif %}{% endif %}
...
...
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