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
e5d88a80
Commit
e5d88a80
authored
Aug 27, 2014
by
Cezar Pendarovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put all TextNodes (method names) back to same line with parent element
parent
8c9b7952
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
24 deletions
+8
-24
rest_framework/templates/rest_framework/base.html
+8
-24
No files found.
rest_framework/templates/rest_framework/base.html
View file @
e5d88a80
...
...
@@ -83,9 +83,7 @@
<fieldset>
<div
class=
"btn-group format-selection"
>
<a
class=
"btn btn-primary js-tooltip"
href=
'{{ request.get_full_path }}'
rel=
"nofollow"
title=
"Make a GET request on the {{ name }} resource"
>
GET
</a>
rel=
"nofollow"
title=
"Make a GET request on the {{ name }} resource"
>
GET
</a>
<button
class=
"btn btn-primary dropdown-toggle js-tooltip"
data-toggle=
"dropdown"
title=
"Specify a format for the GET request"
>
...
...
@@ -113,9 +111,7 @@
{% csrf_token %}
<input
type=
"hidden"
name=
"{{ api_settings.FORM_METHOD_OVERRIDE }}"
value=
"OPTIONS"
/>
<button
class=
"btn btn-primary js-tooltip"
title=
"Make an OPTIONS request on the {{ name }} resource"
>
OPTIONS
</button>
title=
"Make an OPTIONS request on the {{ name }} resource"
>
OPTIONS
</button>
</form>
{% endif %}
...
...
@@ -124,9 +120,7 @@
{% csrf_token %}
<input
type=
"hidden"
name=
"{{ api_settings.FORM_METHOD_OVERRIDE }}"
value=
"DELETE"
/>
<button
class=
"btn btn-danger js-tooltip"
title=
"Make a DELETE request on the {{ name }} resource"
>
DELETE
</button>
title=
"Make a DELETE request on the {{ name }} resource"
>
DELETE
</button>
</form>
{% endif %}
...
...
@@ -172,9 +166,7 @@
{{ post_form }}
<div
class=
"form-actions"
>
<button
class=
"btn btn-primary"
title=
"Make a POST request on the {{ name }} resource"
>
POST
</button>
title=
"Make a POST request on the {{ name }} resource"
>
POST
</button>
</div>
</fieldset>
</form>
...
...
@@ -188,9 +180,7 @@
{% include "rest_framework/raw_data_form.html" %}
<div
class=
"form-actions"
>
<button
class=
"btn btn-primary"
title=
"Make a POST request on the {{ name }} resource"
>
POST
</button>
title=
"Make a POST request on the {{ name }} resource"
>
POST
</button>
</div>
</fieldset>
</form>
...
...
@@ -222,9 +212,7 @@
<div
class=
"form-actions"
>
<button
class=
"btn btn-primary js-tooltip"
name=
"{{ api_settings.FORM_METHOD_OVERRIDE }}"
value=
"PUT"
title=
"Make a PUT request on the {{ name }} resource"
>
PUT
</button>
value=
"PUT"
title=
"Make a PUT request on the {{ name }} resource"
>
PUT
</button>
</div>
</fieldset>
</form>
...
...
@@ -239,16 +227,12 @@
{% if raw_data_put_form %}
<button
class=
"btn btn-primary js-tooltip"
name=
"{{ api_settings.FORM_METHOD_OVERRIDE }}"
value=
"PUT"
title=
"Make a PUT request on the {{ name }} resource"
>
PUT
</button>
value=
"PUT"
title=
"Make a PUT request on the {{ name }} resource"
>
PUT
</button>
{% endif %}
{% if raw_data_patch_form %}
<button
class=
"btn btn-primary js-tooltip"
name=
"{{ api_settings.FORM_METHOD_OVERRIDE }}"
value=
"PATCH"
title=
"Make a PATCH request on the {{ name }} resource"
>
PATCH
</button>
value=
"PATCH"
title=
"Make a PATCH request on the {{ name }} resource"
>
PATCH
</button>
{% endif %}
</div>
</fieldset>
...
...
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