Mercurial > p > roundup > code
comparison website/issues/html/user.index.html @ 5443:447a7647f237
Python 3 preparation: use // division in HTML templates.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Wed, 25 Jul 2018 12:30:25 +0000 |
| parents | f63a2b15e628 |
| children | 370cc9052239 |
comparison
equal
deleted
inserted
replaced
| 5442:afd9fd3a0edb | 5443:447a7647f237 |
|---|---|
| 51 <th i18n:translate="">Email address</th> | 51 <th i18n:translate="">Email address</th> |
| 52 <th i18n:translate="">Phone number</th> | 52 <th i18n:translate="">Phone number</th> |
| 53 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th> | 53 <th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th> |
| 54 </tr> | 54 </tr> |
| 55 <tal:block repeat="user batch"> | 55 <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]"> |
| 57 <td> | 57 <td> |
| 58 <a tal:attributes="href string:user${user/id}" | 58 <a tal:attributes="href string:user${user/id}" |
| 59 tal:content="user/username">username</a> | 59 tal:content="user/username">username</a> |
| 60 </td> | 60 </td> |
| 61 <td tal:content="python:user.realname.plain() or default"> </td> | 61 <td tal:content="python:user.realname.plain() or default"> </td> |
