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
9449dcdd
Commit
9449dcdd
authored
Aug 25, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quote urls in templates
parent
9d5f37d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
djangorestframework/templates/djangorestframework/base.html
+2
-2
djangorestframework/templates/djangorestframework/login.html
+1
-1
No files found.
djangorestframework/templates/djangorestframework/base.html
View file @
9449dcdd
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
{% block userlinks %}
{% block userlinks %}
{% if user.is_active %}
{% if user.is_active %}
Welcome, {{ user }}.
Welcome, {{ user }}.
<a
href=
'{% url
djangorestframework:logout
%}?next={{ request.path }}'
>
Log out
</a>
<a
href=
'{% url
'
djangorestframework:logout
'
%}?
next=
{{
request
.
path
}}'
>
Log out
</a>
{% else %}
{% else %}
Anonymous
Anonymous
<a
href=
'{% url
djangorestframework:login
%}?next={{ request.path }}'
>
Log in
</a>
<a
href=
'{% url
'
djangorestframework:login
'
%}?
next=
{{
request
.
path
}}'
>
Log in
</a>
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
</div>
</div>
...
...
djangorestframework/templates/djangorestframework/login.html
View file @
9449dcdd
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<div
id=
"content"
class=
"colM"
>
<div
id=
"content"
class=
"colM"
>
<div
id=
"content-main"
>
<div
id=
"content-main"
>
<form
method=
"post"
action=
"{% url
djangorestframework:login
%}"
id=
"login-form"
>
<form
method=
"post"
action=
"{% url
'djangorestframework:login'
%}"
id=
"login-form"
>
{% csrf_token %}
{% csrf_token %}
<div
class=
"form-row"
>
<div
class=
"form-row"
>
<label
for=
"id_username"
>
Username:
</label>
{{ form.username }}
<label
for=
"id_username"
>
Username:
</label>
{{ form.username }}
...
...
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