Mercurial > p > roundup > code
comparison templates/classic/html/file.index.html @ 3126:a2889d22db4a
the cgi templating code now checks item-level
permissions (per alex's suggestion).
The templates themselves do not have row-level checks now.
Cleaned up the msg and file index templates to use batching.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 04 Feb 2005 05:25:50 +0000 |
| parents | 460eb0209a9e |
| children |
comparison
equal
deleted
inserted
replaced
| 3123:5894c7bea8ce | 3126:a2889d22db4a |
|---|---|
| 4 >List of files - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" /></title> | 4 >List of files - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" /></title> |
| 5 <span metal:fill-slot="body_title" tal:omit-tag="python:1" | 5 <span metal:fill-slot="body_title" tal:omit-tag="python:1" |
| 6 i18n:translate="">List of files</span> | 6 i18n:translate="">List of files</span> |
| 7 <td class="content" metal:fill-slot="content"> | 7 <td class="content" metal:fill-slot="content"> |
| 8 | 8 |
| 9 <table class="otherinfo"> | 9 <table class="otherinfo" tal:define="batch request/batch"> |
| 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> | |
| 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]"> | |
| 18 <td> | |
| 19 <a tal:attributes="href string:file${file/id}/${file/name}" | |
| 20 tal:content="file/name">dld link</a> | |
| 21 </td> | |
| 22 <td tal:content="file/type">content type</td> | |
| 23 <td tal:content="file/creator">creator's name</td> | |
| 24 <td tal:content="file/creation">creation date</td> | |
| 25 </tr> | 14 </tr> |
| 26 </tal:block> | 15 <tr tal:repeat="file batch" tal:attributes="class python:['normal', 'alt'][repeat['file'].index%6/3]"> |
| 16 <td> | |
| 17 <a tal:attributes="href string:file${file/id}/${file/name}" | |
| 18 tal:content="file/name">dld link</a> | |
| 19 </td> | |
| 20 <td tal:content="file/type">content type</td> | |
| 21 <td tal:content="file/creator">creator's name</td> | |
| 22 <td tal:content="file/creation">creation date</td> | |
| 23 </tr> | |
| 24 | |
| 25 <metal:block use-macro="templates/issue.index/macros/batch-footer" /> | |
| 26 | |
| 27 </table> | 27 </table> |
| 28 | 28 |
| 29 </td> | 29 </td> |
| 30 | 30 |
| 31 </tal:block> | 31 </tal:block> |
