Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
dfb9d01f
Commit
dfb9d01f
authored
Jan 19, 2017
by
Serge S. Koval
Committed by
GitHub
Jan 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1413 from lucidfrontier45/develop
fixed loop counter
parents
61788494
c0397d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
list.html
flask_admin/templates/bootstrap2/admin/model/list.html
+1
-2
list.html
flask_admin/templates/bootstrap3/admin/model/list.html
+1
-2
No files found.
flask_admin/templates/bootstrap2/admin/model/list.html
View file @
dfb9d01f
...
@@ -82,8 +82,8 @@
...
@@ -82,8 +82,8 @@
<th
class=
"span1"
>
</th>
<th
class=
"span1"
>
</th>
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
{% set column = 0 %}
{% for c, name in list_columns %}
{% for c, name in list_columns %}
{% set column = loop.index0 %}
<th
class=
"column-header col-{{c}}"
>
<th
class=
"column-header col-{{c}}"
>
{% if admin_view.is_sortable(c) %}
{% if admin_view.is_sortable(c) %}
{% if sort_column == column %}
{% if sort_column == column %}
...
@@ -108,7 +108,6 @@
...
@@ -108,7 +108,6 @@
></a>
></a>
{% endif %}
{% endif %}
</th>
</th>
{% set column = column + 1 %}
{% endfor %}
{% endfor %}
{% endblock %}
{% endblock %}
</tr>
</tr>
...
...
flask_admin/templates/bootstrap3/admin/model/list.html
View file @
dfb9d01f
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
<th
class=
"col-md-1"
>
</th>
<th
class=
"col-md-1"
>
</th>
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
{% set column = 0 %}
{% for c, name in list_columns %}
{% for c, name in list_columns %}
{% set column = loop.index0 %}
<th
class=
"column-header col-{{c}}"
>
<th
class=
"column-header col-{{c}}"
>
{% if admin_view.is_sortable(c) %}
{% if admin_view.is_sortable(c) %}
{% if sort_column == column %}
{% if sort_column == column %}
...
@@ -107,7 +107,6 @@
...
@@ -107,7 +107,6 @@
></a>
></a>
{% endif %}
{% endif %}
</th>
</th>
{% set column = column + 1 %}
{% endfor %}
{% endfor %}
{% endblock %}
{% endblock %}
</tr>
</tr>
...
...
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