Commit c0397d44 authored by Shiqiao Du's avatar Shiqiao Du
parent 61788494
...@@ -82,8 +82,8 @@ ...@@ -82,8 +82,8 @@
<th class="span1">&nbsp;</th> <th class="span1">&nbsp;</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>
......
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
<th class="col-md-1">&nbsp;</th> <th class="col-md-1">&nbsp;</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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment