Mercurial > p > roundup > code
diff templates/classic/html/file.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 | c2908812624a |
| children | a2889d22db4a |
line wrap: on
line diff
--- a/templates/classic/html/file.index.html Wed Jan 26 17:27:21 2005 +0000 +++ b/templates/classic/html/file.index.html Fri Jan 28 03:51:19 2005 +0000 @@ -12,7 +12,9 @@ <th style="padding-right: 10" i18n:translate="">Uploaded By</th> <th style="padding-right: 10" i18n:translate="">Date</th> </tr> -<tr tal:repeat="file context/list"> + <tal:block repeat="file context/list"> + <tr tal:condition="file/is_view_ok" + tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]"> <td> <a tal:attributes="href string:file${file/id}/${file/name}" tal:content="file/name">dld link</a> @@ -20,7 +22,8 @@ <td tal:content="file/type">content type</td> <td tal:content="file/creator">creator's name</td> <td tal:content="file/creation">creation date</td> -</tr> + </tr> + </tal:block> </table> </td>
