Mercurial > p > roundup > code
view 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 |
line wrap: on
line source
<!-- dollarId: user.index,v 1.3 2002/07/09 05:29:51 richard Exp dollar--> <tal:block metal:use-macro="templates/page/macros/icing"> <title metal:fill-slot="head_title" i18n:translate="">User listing - <span i18n:name="tracker" tal:replace="config/TRACKER_NAME" /></title> <span metal:fill-slot="body_title" tal:omit-tag="python:1" i18n:translate="">User listing</span> <td class="content" metal:fill-slot="content"> <span tal:condition="not:context/is_view_ok" i18n:translate="">You are not allowed to view this page.</span> <table width="100%" tal:condition="context/is_view_ok" class="list"> <tr> <th i18n:translate="">Username</th> <th i18n:translate="">Email address</th> </tr> <tal:block repeat="user context/list"> <tr tal:condition="user/is_view_ok" tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]"> <td> <a tal:attributes="href string:user${user/id}" tal:content="user/username">username</a> </td> <td tal:content="python:user.address.email()">address</td> </tr> </tal:block> </table> </td> </tal:block>
