Skip to content

Commit 39f1dfe

Browse files
committed
Python 3 preparation: use // division in HTML templates.
1 parent 76f4691 commit 39f1dfe

19 files changed

+21
-21
lines changed

share/roundup/templates/classic/html/_generic.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</tr>
6161
<tal:block repeat="item context/list">
6262
<tr tal:condition="item/is_view_ok"
63-
tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]">
63+
tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6//3]">
6464
<td tal:repeat="property context/propnames"
6565
tal:content="python: item[property] or default"
6666
>&nbsp;</td>

share/roundup/templates/classic/html/file.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<th style="padding-right: 10" i18n:translate="">Uploaded By</th>
1313
<th style="padding-right: 10" i18n:translate="">Date</th>
1414
</tr>
15-
<tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]">
15+
<tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6//3]">
1616
<td>
1717
<a tal:attributes="href string:file${file/id}/${file/name}"
1818
tal:content="file/name">dld link</a>

share/roundup/templates/classic/html/user.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
2525
</tr>
2626
<tal:block repeat="user context/list">
27-
<tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
27+
<tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6//3]">
2828
<td>
2929
<a tal:attributes="href string:user${user/id}"
3030
tal:content="user/username">username</a>

share/roundup/templates/devel/html/_generic.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</tr>
5858
<tal:block repeat="item context/list">
5959
<tr tal:condition="item/is_view_ok"
60-
tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]">
60+
tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6//3]">
6161
<td tal:repeat="property context/propnames"
6262
tal:content="python: item[property] or default"
6363
>&nbsp;</td>

share/roundup/templates/devel/html/file.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<th style="padding-right: 10" i18n:translate="">Uploaded By</th>
1313
<th style="padding-right: 10" i18n:translate="">Date</th>
1414
</tr>
15-
<tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]">
15+
<tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6//3]">
1616
<td>
1717
<a tal:attributes="href string:file${file/id}/${file/name}"
1818
tal:content="file/name">dld link</a>

share/roundup/templates/devel/html/keyword.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</tr>
2828

2929
<tal:block repeat="keyword context/list">
30-
<tr tal:attributes="class python:['normal', 'alt'][repeat['keyword'].index%6/3]">
30+
<tr tal:attributes="class python:['normal', 'alt'][repeat['keyword'].index%6//3]">
3131
<td>
3232
<a tal:attributes="href string:keyword${keyword/id}"
3333
tal:content="keyword/name">keyword name</a>

share/roundup/templates/devel/html/patch.index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<th style="padding-right: 10" i18n:translate="">Uploaded By</th>
1414
<th style="padding-right: 10" i18n:translate="">Date</th>
1515
</tr>
16-
<tr tal:repeat="patch batch" tal:attributes="class python:['normal', 'alt'][repeat['patch'].index%6/3]">
16+
<tr tal:repeat="patch batch" tal:attributes="class python:['normal', 'alt'][repeat['patch'].index%6//3]">
1717
<td>
1818
<a tal:attributes="href string:patch${patch/id}/${patch/name}"
1919
tal:content="patch/name">dld link</a>
@@ -46,7 +46,7 @@
4646
<th style="padding-right: 10" i18n:translate="">Uploaded By</th>
4747
<th style="padding-right: 10" i18n:translate="">Date</th>
4848
</tr>
49-
<tr tal:repeat="patch batch" tal:attributes="class python:['normal', 'alt'][repeat['patch'].index%6/3]">
49+
<tr tal:repeat="patch batch" tal:attributes="class python:['normal', 'alt'][repeat['patch'].index%6//3]">
5050
<td>
5151
<a tal:attributes="href string:patch${patch/id}/${patch/name}"
5252
tal:content="patch/name">dld link</a>

share/roundup/templates/devel/html/user.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
5454
</tr>
5555
<tal:block repeat="user batch">
56-
<tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
56+
<tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6//3]">
5757
<td>
5858
<a tal:attributes="href string:user${user/id}"
5959
tal:content="user/username">username</a>

share/roundup/templates/minimal/html/_generic.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</tr>
6161
<tal:block repeat="item context/list">
6262
<tr tal:condition="item/is_view_ok"
63-
tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6/3]">
63+
tal:attributes="class python:['normal', 'alt'][repeat['item'].index%6//3]">
6464
<td tal:repeat="property context/propnames"
6565
tal:content="python: item[property] or default"
6666
>&nbsp;</td>

share/roundup/templates/minimal/html/user.index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</tr>
2222
<tal:block repeat="user context/list">
2323
<tr tal:condition="user/is_view_ok"
24-
tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
24+
tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6//3]">
2525
<td>
2626
<a tal:attributes="href string:user${user/id}"
2727
tal:content="user/username">username</a>

0 commit comments

Comments
 (0)