Skip to content

Commit 8cff77e

Browse files
committed
Fix backwards-incompatible problem with cycle in Django 1.2
- Legacy-Id: 3888
1 parent 32d2979 commit 8cff77e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

ietf/templates/idrfc/search_result_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
{% load ietf_filters %}
3636
{% load ballot_icon %}
37-
<tr class="{% cycle oddrow,evenrow %}">
37+
<tr class="{{ forloop.counter|divisibleby:2|yesno:"oddrow,evenrow" }}">
3838
<td class="doc">
3939
{% if doc.rfc %}{{ doc.rfc.displayname_with_link|safe }}
4040
{% if doc.id %}<br />(<a href="{{ doc.id.get_absolute_url }}">{{doc.id.draft_name}}</a>){%endif%}

ietf/templates/ipr/list_item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
2-
<tr class="{% cycle oddrow,evenrow %}">
2+
<tr class="{{ forloop.counter|divisibleby:2|yesno:"oddrow,evenrow" }}">
33
<td>{{ ipr.submitted_date }}</td>
44
<td>{{ ipr.ipr_id }}</td>
55
<td>

ietf/templates/wgchairs/shepherd_document_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% load wgchairs_tags %}
22

3-
<tr class="{% cycle oddrow,evenrow %}">
3+
<tr class="{{ forloop.counter|divisibleby:2|yesno:"oddrow,evenrow" }}>
44
<td class="title">
55
<a href="{% url doc_view doc.filename %}">{{ doc.title }}</a>
66
</td>

ietf/templates/wgcharter/search_result_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% endcomment %}
44

55
{% load ietf_filters %}
6-
<tr class="{% cycle oddrow,evenrow %}">
6+
<tr class="{{ forloop.counter|divisibleby:2|yesno:"oddrow,evenrow" }}">
77
<td class="acronym">
88
<a href="{% url wg_view name=wg.acronym %}">{{ wg.acronym|safe }}</a>
99
</td>

0 commit comments

Comments
 (0)