Mercurial > p > roundup > code
comparison templates/minimal/html/user.index.html @ 3117:460eb0209a9e
Permissions improvements.
- have Permissions only test the check function if itemid is suppled
- modify index templates to check for row-level Permission
- more documentation of security mechanisms
- better unit tests for security mechanisms
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 28 Jan 2005 03:51:19 +0000 |
| parents | f965504aa5d9 |
| children | a9f6eb633452 |
comparison
equal
deleted
inserted
replaced
| 3115:ece73371713c | 3117:460eb0209a9e |
|---|---|
| 12 <table width="100%" tal:condition="context/is_view_ok" class="list"> | 12 <table width="100%" tal:condition="context/is_view_ok" class="list"> |
| 13 <tr> | 13 <tr> |
| 14 <th i18n:translate="">Username</th> | 14 <th i18n:translate="">Username</th> |
| 15 <th i18n:translate="">Email address</th> | 15 <th i18n:translate="">Email address</th> |
| 16 </tr> | 16 </tr> |
| 17 <tr tal:repeat="user context/list" | 17 <tal:block repeat="user context/list"> |
| 18 <tr tal:condition="user/is_view_ok" | |
| 18 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]"> | 19 tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]"> |
| 19 <td> | 20 <td> |
| 20 <a tal:attributes="href string:user${user/id}" | 21 <a tal:attributes="href string:user${user/id}" |
| 21 tal:content="user/username">username</a> | 22 tal:content="user/username">username</a> |
| 22 </td> | 23 </td> |
| 23 <td tal:content="python:user.address.email()">address</td> | 24 <td tal:content="python:user.address.email()">address</td> |
| 24 </tr> | 25 </tr> |
| 26 </tal:block> | |
| 25 </table> | 27 </table> |
| 26 </td> | 28 </td> |
| 27 | 29 |
| 28 </tal:block> | 30 </tal:block> |
