comparison 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
comparison
equal deleted inserted replaced
3115:ece73371713c 3117:460eb0209a9e
10 <tr><th style="padding-right: 10" i18n:translate="">Download</th> 10 <tr><th style="padding-right: 10" i18n:translate="">Download</th>
11 <th style="padding-right: 10" i18n:translate="">Content Type</th> 11 <th style="padding-right: 10" i18n:translate="">Content Type</th>
12 <th style="padding-right: 10" i18n:translate="">Uploaded By</th> 12 <th style="padding-right: 10" i18n:translate="">Uploaded By</th>
13 <th style="padding-right: 10" i18n:translate="">Date</th> 13 <th style="padding-right: 10" i18n:translate="">Date</th>
14 </tr> 14 </tr>
15 <tr tal:repeat="file context/list"> 15 <tal:block repeat="file context/list">
16 <tr tal:condition="file/is_view_ok"
17 tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]">
16 <td> 18 <td>
17 <a tal:attributes="href string:file${file/id}/${file/name}" 19 <a tal:attributes="href string:file${file/id}/${file/name}"
18 tal:content="file/name">dld link</a> 20 tal:content="file/name">dld link</a>
19 </td> 21 </td>
20 <td tal:content="file/type">content type</td> 22 <td tal:content="file/type">content type</td>
21 <td tal:content="file/creator">creator's name</td> 23 <td tal:content="file/creator">creator's name</td>
22 <td tal:content="file/creation">creation date</td> 24 <td tal:content="file/creation">creation date</td>
23 </tr> 25 </tr>
26 </tal:block>
24 </table> 27 </table>
25 28
26 </td> 29 </td>
27 30
28 </tal:block> 31 </tal:block>

Roundup Issue Tracker: http://roundup-tracker.org/