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
5392be4d
Commit
5392be4d
authored
May 16, 2016
by
José Padilla
Committed by
Tom Christie
May 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spring cleaning template styles (#4124)
parent
1328982d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
31 deletions
+31
-31
rest_framework/templates/rest_framework/admin.html
+0
-0
rest_framework/templates/rest_framework/admin/detail.html
+6
-6
rest_framework/templates/rest_framework/admin/list.html
+17
-17
rest_framework/templates/rest_framework/admin/list_value.html
+8
-8
rest_framework/templates/rest_framework/base.html
+0
-0
No files found.
rest_framework/templates/rest_framework/admin.html
View file @
5392be4d
This diff is collapsed.
Click to expand it.
rest_framework/templates/rest_framework/admin/detail.html
View file @
5392be4d
{% load rest_framework %}
<table
class=
"table table-striped"
>
<tbody>
{% for key, value in results.items %}
{% if key in details %}
<tbody>
{% for key, value in results.items %}
{% if key in details %}
<tr><th>
{{ key|capfirst }}
</th><td
{{
value
|
add_nested_class
}}
>
{{ value|format_value }}
</td></tr>
{% endif %}
{% endfor %}
</tbody>
{% endif %}
{% endfor %}
</tbody>
</table>
rest_framework/templates/rest_framework/admin/list.html
View file @
5392be4d
{% load rest_framework %}
<table
class=
"table table-striped"
>
<thead>
<tr>
{% for column in columns%}
<th>
{{ column|capfirst }}
</th>
{% endfor %}
<th></th></tr>
</thead>
<tbody>
{% for row in results %}
<tr>
{% for key, value in row.items %}
{% if key in columns %}
<td
{{
value
|
add_nested_class
}}
>
{{ value|format_value }}
</td>
{% endif %}
{% endfor %}
<td>
<a
href=
"{{ row.url }}"
><span
class=
"glyphicon glyphicon-chevron-right"
aria-hidden=
"true"
></span></a>
<thead>
<tr>
{% for column in columns%}
<th>
{{ column|capfirst }}
</th>
{% endfor %}
<th></th></tr>
</thead>
<tbody>
{% for row in results %}
<tr>
{% for key, value in row.items %}
{% if key in columns %}
<td
{{
value
|
add_nested_class
}}
>
{{ value|format_value }}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
<td>
<a
href=
"{{ row.url }}"
><span
class=
"glyphicon glyphicon-chevron-right"
aria-hidden=
"true"
></span></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
rest_framework/templates/rest_framework/admin/list_value.html
View file @
5392be4d
{% load rest_framework %}
<table
class=
"table table-striped"
>
<tbody>
{% for item in value %}
<tr>
<th>
{{ forloop.counter0 }}
</th>
<td>
{{ item|format_value }}
</td>
</tr>
{% endfor %}
</tbody>
<tbody>
{% for item in value %}
<tr>
<th>
{{ forloop.counter0 }}
</th>
<td>
{{ item|format_value }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
rest_framework/templates/rest_framework/base.html
View file @
5392be4d
This diff is collapsed.
Click to expand it.
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