File tree Expand file tree Collapse file tree 9 files changed +17
-16
lines changed
rest_framework/templates/rest_framework Expand file tree Collapse file tree 9 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ <h1>{{ name }}</h1>
150
150
</ div >
151
151
152
152
< div class ="response-info ">
153
- < pre class ="prettyprint "> < span class ="meta nocode "> < b > HTTP {{ response.status_code }} {{ response.status_text }}</ b > {% autoescape off %}{% for key, val in response_headers. items %}
153
+ < pre class ="prettyprint "> < span class ="meta nocode "> < b > HTTP {{ response.status_code }} {{ response.status_text }}</ b > {% autoescape off %}{% for key, val in response_headers| items %}
154
154
< b > {{ key }}:</ b > < span class ="lit "> {{ val|break_long_headers|urlize_quoted_links }}</ span > {% endfor %}
155
155
156
156
</ span > {{ content|urlize_quoted_links }}</ pre > {% endautoescape %}
Original file line number Diff line number Diff line change @@ -14,17 +14,17 @@ <h1>{{ document.title }}</h1>
14
14
</ div >
15
15
</ div >
16
16
17
- {% for section_key, section in document.data. items %}
17
+ {% for section_key, section in document.data| items %}
18
18
{% if section_key %}
19
19
< h2 id ="{{ section_key }} " class ="coredocs-section-title "> {{ section_key }} < a href ="#{{ section_key }} "> < i class ="fa fa-link " aria-hidden ="true "> </ i >
20
20
</ a > </ h2 >
21
21
{% endif %}
22
22
23
- {% for link_key, link in section.links. items %}
23
+ {% for link_key, link in section.links| items %}
24
24
{% include "rest_framework/docs/link.html" %}
25
25
{% endfor %}
26
26
{% endfor %}
27
27
28
- {% for link_key, link in document.links. items %}
28
+ {% for link_key, link in document.links| items %}
29
29
{% include "rest_framework/docs/link.html" %}
30
30
{% endfor %}
Original file line number Diff line number Diff line change
1
+ {% load rest_framework %}
1
2
< div class ="sidebar ">
2
3
< h3 class ="brand "> < a href ="# "> {{ document.title }}</ a > </ h3 >
3
4
4
5
< i class ="fa fa-bars fa-2x toggle-btn " data-toggle ="collapse " data-target ="#menu-content "> </ i >
5
6
< div class ="menu-list ">
6
7
< ul id ="menu-content " class ="menu-content collapse out ">
7
- {% for section_key, section in document.data. items %}
8
+ {% for section_key, section in document.data| items %}
8
9
< li data-toggle ="collapse " data-target ="#{{ section_key }}-dropdown " class ="collapsed ">
9
10
< a > < i class ="fa fa-dot-circle-o fa-lg "> </ i > {% if section_key %}{{ section_key }}{% else %}API Endpoints{% endif %} < span class ="arrow "> </ span > </ a >
10
11
</ li >
11
12
< ul class ="sub-menu {% if section_key %}collapse{% endif %} " id ="{{ section_key }}-dropdown ">
12
- {% for link_key, link in section.links. items %}
13
+ {% for link_key, link in section.links| items %}
13
14
< li > < a href ="#{{ section_key }}-{{ link_key }} "> {{ link.title|default:link_key }}</ a > </ li >
14
15
{% endfor %}
15
16
</ ul >
Original file line number Diff line number Diff line change 9
9
10
10
< div class ="col-sm-10 ">
11
11
{% if style.inline %}
12
- {% for key, text in field.choices. items %}
12
+ {% for key, text in field.choices| items %}
13
13
< label class ="checkbox-inline ">
14
14
< input type ="checkbox " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string in field.value|as_list_of_strings %}checked{% endif %} >
15
15
{{ text }}
16
16
</ label >
17
17
{% endfor %}
18
18
{% else %}
19
- {% for key, text in field.choices. items %}
19
+ {% for key, text in field.choices| items %}
20
20
< div class ="checkbox ">
21
21
< label >
22
22
< input type ="checkbox " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string in field.value|as_list_of_strings %}checked{% endif %} >
Original file line number Diff line number Diff line change 19
19
</ label >
20
20
{% endif %}
21
21
22
- {% for key, text in field.choices. items %}
22
+ {% for key, text in field.choices| items %}
23
23
< label class ="radio-inline ">
24
24
< input type ="radio " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string == field.value|as_string %}checked{% endif %} />
25
25
{{ text }}
34
34
</ label >
35
35
</ div >
36
36
{% endif %}
37
- {% for key, text in field.choices. items %}
37
+ {% for key, text in field.choices| items %}
38
38
< div class ="radio ">
39
39
< label >
40
40
< input type ="radio " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string == field.value|as_string %}checked{% endif %} />
Original file line number Diff line number Diff line change 5
5
< label class ="sr-only "> {{ field.label }}</ label >
6
6
{% endif %}
7
7
8
- {% for key, text in field.choices. items %}
8
+ {% for key, text in field.choices| items %}
9
9
< div class ="checkbox ">
10
10
< label >
11
11
< input type ="checkbox " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string in field.value|as_list_of_strings %}checked{% endif %} >
Original file line number Diff line number Diff line change 18
18
</ div >
19
19
{% endif %}
20
20
21
- {% for key, text in field.choices. items %}
21
+ {% for key, text in field.choices| items %}
22
22
< div class ="radio ">
23
23
< label >
24
24
< input type ="radio " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string == field.value|as_string %}checked{% endif %} >
Original file line number Diff line number Diff line change 7
7
8
8
{% if style.inline %}
9
9
< div >
10
- {% for key, text in field.choices. items %}
10
+ {% for key, text in field.choices| items %}
11
11
< label class ="checkbox-inline ">
12
12
< input type ="checkbox " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string in field.value|as_list_of_strings %}checked{% endif %} >
13
13
{{ text }}
14
14
</ label >
15
15
{% endfor %}
16
16
</ div >
17
17
{% else %}
18
- {% for key, text in field.choices. items %}
18
+ {% for key, text in field.choices| items %}
19
19
< div class ="checkbox ">
20
20
< label >
21
21
< input type ="checkbox " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string in field.value|as_list_of_strings %}checked{% endif %} >
Original file line number Diff line number Diff line change 18
18
</ label >
19
19
{% endif %}
20
20
21
- {% for key, text in field.choices. items %}
21
+ {% for key, text in field.choices| items %}
22
22
< label class ="radio-inline ">
23
23
< input type ="radio " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string == field.value|as_string %}checked{% endif %} >
24
24
{{ text }}
35
35
</ div >
36
36
{% endif %}
37
37
38
- {% for key, text in field.choices. items %}
38
+ {% for key, text in field.choices| items %}
39
39
< div class ="radio ">
40
40
< label >
41
41
< input type ="radio " name ="{{ field.name }} " value ="{{ key }} " {% if key|as_string == field.value|as_string %}checked{% endif %} >
You can’t perform that action at this time.
0 commit comments